pub trait RuleBodyItemParser<'i, DeclOrRule, Error: 'i>: DeclarationParser<'i, Declaration = DeclOrRule, Error = Error> + QualifiedRuleParser<'i, QualifiedRule = DeclOrRule, Error = Error> + AtRuleParser<'i, AtRule = DeclOrRule, Error = Error> {
    // Required methods
    fn parse_declarations(&self) -> bool;
    fn parse_qualified(&self) -> bool;
}
Expand description

A parser for a rule body item.

Required Methods§

source

fn parse_declarations(&self) -> bool

Whether we should attempt to parse declarations. If you know you won’t, returning false here is slightly faster.

source

fn parse_qualified(&self) -> bool

Whether we should attempt to parse qualified rules. If you know you won’t, returning false would be slightly faster.

Implementors§