Skip to main content

RuleBodyItemParser

Trait RuleBodyItemParser 

Source
pub trait RuleBodyItemParser<'i, DeclOrRule, Error>:
    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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§