cssparser

Trait RuleBodyItemParser

Source
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§

impl<'a, 'b, 'i> RuleBodyItemParser<'i, (), StyleParseErrorKind<'i>> for CounterStyleRuleParser<'a, 'b>

impl<'a, 'b, 'i> RuleBodyItemParser<'i, (), StyleParseErrorKind<'i>> for FontFaceRuleParser<'a, 'b>

impl<'a, 'b, 'i> RuleBodyItemParser<'i, (), StyleParseErrorKind<'i>> for PropertyDeclarationParser<'a, 'b, 'i>

impl<'a, 'b, 'i> RuleBodyItemParser<'i, (), StyleParseErrorKind<'i>> for PropertyRuleParser<'a, 'b>

impl<'a, 'b, 'i, T> RuleBodyItemParser<'i, (), StyleParseErrorKind<'i>> for FFVDeclarationsParser<'a, 'b, T>
where T: Parse,

impl<'a, 'i> RuleBodyItemParser<'i, (), StyleParseErrorKind<'i>> for NestedRuleParser<'a, 'i>