Struct tuix_internal::common::theme::RuleParser [−][src]
pub struct RuleParser;
Implementations
Trait Implementations
type PreludeBlock = ()
type PreludeBlock = ()
The intermediate representation of prelude of an at-rule with block;
type PreludeNoBlock = ()
type PreludeNoBlock = ()
The intermediate representation of prelude of an at-rule without block;
type Error = CustomParseError
type Error = CustomParseError
The error type that is included in the ParseError value that can be returned.
pub fn parse_prelude(
&mut self,
name: CowRcStr<'i>,
input: &mut Parser<'i, 't>
) -> Result<AtRuleType<<RuleParser as AtRuleParser<'i>>::PreludeNoBlock, <RuleParser as AtRuleParser<'i>>::PreludeBlock>, ParseError<'i, <RuleParser as AtRuleParser<'i>>::Error>>
pub fn parse_prelude(
&mut self,
name: CowRcStr<'i>,
input: &mut Parser<'i, 't>
) -> Result<AtRuleType<<RuleParser as AtRuleParser<'i>>::PreludeNoBlock, <RuleParser as AtRuleParser<'i>>::PreludeBlock>, ParseError<'i, <RuleParser as AtRuleParser<'i>>::Error>>
Parse the prelude of an at-rule with the given name
. Read more
fn rule_without_block(
&mut self,
prelude: Self::PreludeNoBlock,
location: SourceLocation
) -> Self::AtRule
fn rule_without_block(
&mut self,
prelude: Self::PreludeNoBlock,
location: SourceLocation
) -> Self::AtRule
End an at-rule which doesn’t have block. Return the finished representation of the at-rule. Read more
fn parse_block(
&mut self,
prelude: Self::PreludeBlock,
location: SourceLocation,
input: &mut Parser<'i, 't>
) -> Result<Self::AtRule, ParseError<'i, Self::Error>>
fn parse_block(
&mut self,
prelude: Self::PreludeBlock,
location: SourceLocation,
input: &mut Parser<'i, 't>
) -> Result<Self::AtRule, ParseError<'i, Self::Error>>
Parse the content of a { /* ... */ }
block for the body of the at-rule. Read more
type QualifiedRule = StyleRule
type QualifiedRule = StyleRule
The finished representation of a qualified rule.
type Error = CustomParseError
type Error = CustomParseError
The error type that is included in the ParseError value that can be returned.
pub fn parse_prelude(
&mut self,
input: &mut Parser<'i, 't>
) -> Result<<RuleParser as QualifiedRuleParser<'i>>::Prelude, ParseError<'i, <RuleParser as QualifiedRuleParser<'i>>::Error>>
pub fn parse_prelude(
&mut self,
input: &mut Parser<'i, 't>
) -> Result<<RuleParser as QualifiedRuleParser<'i>>::Prelude, ParseError<'i, <RuleParser as QualifiedRuleParser<'i>>::Error>>
Parse the prelude of a qualified rule. For style rules, this is as Selector list. Read more
pub fn parse_block(
&mut self,
selectors: <RuleParser as QualifiedRuleParser<'i>>::Prelude,
location: SourceLocation,
input: &mut Parser<'i, 't>
) -> Result<<RuleParser as QualifiedRuleParser<'i>>::QualifiedRule, ParseError<'i, <RuleParser as QualifiedRuleParser<'i>>::Error>>
pub fn parse_block(
&mut self,
selectors: <RuleParser as QualifiedRuleParser<'i>>::Prelude,
location: SourceLocation,
input: &mut Parser<'i, 't>
) -> Result<<RuleParser as QualifiedRuleParser<'i>>::QualifiedRule, ParseError<'i, <RuleParser as QualifiedRuleParser<'i>>::Error>>
Parse the content of a { /* ... */ }
block for the body of the qualified rule. Read more