pub struct Parser<I>where
I: ParserInput,{ /* private fields */ }Implementations§
Source§impl<I> Parser<I>where
I: ParserInput,
impl<I> Parser<I>where
I: ParserInput,
pub fn parse_function_values( &mut self, function_name: &FunctionName, ) -> PResult<Vec<ComponentValue>>
Source§impl<I> Parser<I>where
I: ParserInput,
impl<I> Parser<I>where
I: ParserInput,
pub fn new(input: I, config: ParserConfig) -> Self
pub fn dump_cur(&mut self) -> String
Sourcepub fn take_errors(&mut self) -> Vec<Error>
pub fn take_errors(&mut self) -> Vec<Error>
Take recovered errors.
pub fn parse_all(&mut self) -> PResult<Stylesheet>
Trait Implementations§
Source§impl<I> Parse<AbsoluteColorBase> for Parser<I>where
I: ParserInput,
impl<I> Parse<AbsoluteColorBase> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<AbsoluteColorBase>
Source§impl<I> Parse<AlphaValue> for Parser<I>where
I: ParserInput,
impl<I> Parse<AlphaValue> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<AlphaValue>
Source§impl<I> Parse<AttributeSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<AttributeSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<AttributeSelector>
Source§impl<I> Parse<AttributeSelectorMatcher> for Parser<I>where
I: ParserInput,
impl<I> Parse<AttributeSelectorMatcher> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<AttributeSelectorMatcher>
Source§impl<I> Parse<AttributeSelectorModifier> for Parser<I>where
I: ParserInput,
impl<I> Parse<AttributeSelectorModifier> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<AttributeSelectorModifier>
Source§impl<I> Parse<AttributeSelectorValue> for Parser<I>where
I: ParserInput,
impl<I> Parse<AttributeSelectorValue> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<AttributeSelectorValue>
Source§impl<I> Parse<CalcOperator> for Parser<I>where
I: ParserInput,
impl<I> Parse<CalcOperator> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CalcOperator>
Source§impl<I> Parse<CalcProduct> for Parser<I>where
I: ParserInput,
impl<I> Parse<CalcProduct> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CalcProduct>
Source§impl<I> Parse<ClassSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<ClassSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ClassSelector>
Source§impl<I> Parse<CmykComponent> for Parser<I>where
I: ParserInput,
impl<I> Parse<CmykComponent> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CmykComponent>
Source§impl<I> Parse<Combinator> for Parser<I>where
I: ParserInput,
impl<I> Parse<Combinator> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<Combinator>
Source§impl<I> Parse<ComplexSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<ComplexSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ComplexSelector>
Source§impl<I> Parse<ComponentValue> for Parser<I>where
I: ParserInput,
impl<I> Parse<ComponentValue> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ComponentValue>
Source§impl<I> Parse<CompoundSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<CompoundSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CompoundSelector>
Source§impl<I> Parse<CompoundSelectorList> for Parser<I>where
I: ParserInput,
impl<I> Parse<CompoundSelectorList> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CompoundSelectorList>
Source§impl<I> Parse<ContainerCondition> for Parser<I>where
I: ParserInput,
impl<I> Parse<ContainerCondition> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ContainerCondition>
Source§impl<I> Parse<ContainerName> for Parser<I>where
I: ParserInput,
impl<I> Parse<ContainerName> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ContainerName>
Source§impl<I> Parse<ContainerQuery> for Parser<I>where
I: ParserInput,
impl<I> Parse<ContainerQuery> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ContainerQuery>
Source§impl<I> Parse<ContainerQueryAnd> for Parser<I>where
I: ParserInput,
impl<I> Parse<ContainerQueryAnd> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ContainerQueryAnd>
Source§impl<I> Parse<ContainerQueryNot> for Parser<I>where
I: ParserInput,
impl<I> Parse<ContainerQueryNot> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ContainerQueryNot>
Source§impl<I> Parse<ContainerQueryOr> for Parser<I>where
I: ParserInput,
impl<I> Parse<ContainerQueryOr> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ContainerQueryOr>
Source§impl<I> Parse<CustomHighlightName> for Parser<I>where
I: ParserInput,
impl<I> Parse<CustomHighlightName> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CustomHighlightName>
Source§impl<I> Parse<CustomIdent> for Parser<I>where
I: ParserInput,
impl<I> Parse<CustomIdent> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CustomIdent>
Source§impl<I> Parse<CustomMediaQuery> for Parser<I>where
I: ParserInput,
impl<I> Parse<CustomMediaQuery> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CustomMediaQuery>
Source§impl<I> Parse<CustomPropertyName> for Parser<I>where
I: ParserInput,
impl<I> Parse<CustomPropertyName> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<CustomPropertyName>
Source§impl<I> Parse<DashedIdent> for Parser<I>where
I: ParserInput,
impl<I> Parse<DashedIdent> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<DashedIdent>
Source§impl<I> Parse<Declaration> for Parser<I>where
I: ParserInput,
impl<I> Parse<Declaration> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<Declaration>
Source§impl<I> Parse<DocumentPreludeMatchingFunction> for Parser<I>where
I: ParserInput,
impl<I> Parse<DocumentPreludeMatchingFunction> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<DocumentPreludeMatchingFunction>
Source§impl<I> Parse<ExtensionName> for Parser<I>where
I: ParserInput,
impl<I> Parse<ExtensionName> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ExtensionName>
Source§impl<I> Parse<FamilyName> for Parser<I>where
I: ParserInput,
impl<I> Parse<FamilyName> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<FamilyName>
Source§impl<I> Parse<FontFeatureValuesPrelude> for Parser<I>where
I: ParserInput,
impl<I> Parse<FontFeatureValuesPrelude> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<FontFeatureValuesPrelude>
Source§impl<I> Parse<ForgivingRelativeSelectorList> for Parser<I>where
I: ParserInput,
impl<I> Parse<ForgivingRelativeSelectorList> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ForgivingRelativeSelectorList>
Source§impl<I> Parse<ForgivingSelectorList> for Parser<I>where
I: ParserInput,
impl<I> Parse<ForgivingSelectorList> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ForgivingSelectorList>
Source§impl<I> Parse<GeneralEnclosed> for Parser<I>where
I: ParserInput,
impl<I> Parse<GeneralEnclosed> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<GeneralEnclosed>
Source§impl<I> Parse<IdSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<IdSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<IdSelector>
Source§impl<I> Parse<ImportConditions> for Parser<I>where
I: ParserInput,
impl<I> Parse<ImportConditions> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ImportConditions>
Source§impl<I> Parse<KeyframeSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<KeyframeSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<KeyframeSelector>
Source§impl<I> Parse<KeyframesName> for Parser<I>where
I: ParserInput,
impl<I> Parse<KeyframesName> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<KeyframesName>
Source§impl<I> Parse<ListOfComponentValues> for Parser<I>where
I: ParserInput,
impl<I> Parse<ListOfComponentValues> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ListOfComponentValues>
Source§impl<I> Parse<MediaCondition> for Parser<I>where
I: ParserInput,
impl<I> Parse<MediaCondition> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<MediaCondition>
Source§impl<I> Parse<MediaConditionWithoutOr> for Parser<I>where
I: ParserInput,
impl<I> Parse<MediaConditionWithoutOr> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<MediaConditionWithoutOr>
Source§impl<I> Parse<MediaFeature> for Parser<I>where
I: ParserInput,
impl<I> Parse<MediaFeature> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<MediaFeature>
Source§impl<I> Parse<MediaFeatureValue> for Parser<I>where
I: ParserInput,
impl<I> Parse<MediaFeatureValue> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<MediaFeatureValue>
Source§impl<I> Parse<MediaInParens> for Parser<I>where
I: ParserInput,
impl<I> Parse<MediaInParens> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<MediaInParens>
Source§impl<I> Parse<MediaQuery> for Parser<I>where
I: ParserInput,
impl<I> Parse<MediaQuery> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<MediaQuery>
Source§impl<I> Parse<MediaQueryList> for Parser<I>where
I: ParserInput,
impl<I> Parse<MediaQueryList> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<MediaQueryList>
Source§impl<I> Parse<NamespacePrefix> for Parser<I>where
I: ParserInput,
impl<I> Parse<NamespacePrefix> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<NamespacePrefix>
Source§impl<I> Parse<PageSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<PageSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<PageSelector>
Source§impl<I> Parse<PageSelectorList> for Parser<I>where
I: ParserInput,
impl<I> Parse<PageSelectorList> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<PageSelectorList>
Source§impl<I> Parse<PageSelectorPseudo> for Parser<I>where
I: ParserInput,
impl<I> Parse<PageSelectorPseudo> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<PageSelectorPseudo>
Source§impl<I> Parse<PageSelectorType> for Parser<I>where
I: ParserInput,
impl<I> Parse<PageSelectorType> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<PageSelectorType>
Source§impl<I> Parse<Percentage> for Parser<I>where
I: ParserInput,
impl<I> Parse<Percentage> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<Percentage>
Source§impl<I> Parse<PseudoClassSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<PseudoClassSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<PseudoClassSelector>
Source§impl<I> Parse<PseudoElementSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<PseudoElementSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<PseudoElementSelector>
Source§impl<I> Parse<QualifiedRule> for Parser<I>where
I: ParserInput,
impl<I> Parse<QualifiedRule> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<QualifiedRule>
Source§impl<I> Parse<QueryInParens> for Parser<I>where
I: ParserInput,
impl<I> Parse<QueryInParens> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<QueryInParens>
Source§impl<I> Parse<RelativeSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<RelativeSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<RelativeSelector>
Source§impl<I> Parse<RelativeSelectorList> for Parser<I>where
I: ParserInput,
impl<I> Parse<RelativeSelectorList> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<RelativeSelectorList>
Source§impl<I> Parse<Resolution> for Parser<I>where
I: ParserInput,
impl<I> Parse<Resolution> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<Resolution>
Source§impl<I> Parse<ScopeRange> for Parser<I>where
I: ParserInput,
impl<I> Parse<ScopeRange> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<ScopeRange>
Source§impl<I> Parse<SelectorList> for Parser<I>where
I: ParserInput,
impl<I> Parse<SelectorList> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SelectorList>
Source§impl<I> Parse<SimpleBlock> for Parser<I>where
I: ParserInput,
impl<I> Parse<SimpleBlock> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SimpleBlock>
Source§impl<I> Parse<SizeFeature> for Parser<I>where
I: ParserInput,
impl<I> Parse<SizeFeature> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SizeFeature>
Source§impl<I> Parse<SizeFeatureValue> for Parser<I>where
I: ParserInput,
impl<I> Parse<SizeFeatureValue> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SizeFeatureValue>
Source§impl<I> Parse<Stylesheet> for Parser<I>where
I: ParserInput,
impl<I> Parse<Stylesheet> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<Stylesheet>
Source§impl<I> Parse<SubclassSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<SubclassSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SubclassSelector>
Source§impl<I> Parse<SupportsAnd> for Parser<I>where
I: ParserInput,
impl<I> Parse<SupportsAnd> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SupportsAnd>
Source§impl<I> Parse<SupportsCondition> for Parser<I>where
I: ParserInput,
impl<I> Parse<SupportsCondition> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SupportsCondition>
Source§impl<I> Parse<SupportsFeature> for Parser<I>where
I: ParserInput,
impl<I> Parse<SupportsFeature> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SupportsFeature>
Source§impl<I> Parse<SupportsInParens> for Parser<I>where
I: ParserInput,
impl<I> Parse<SupportsInParens> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SupportsInParens>
Source§impl<I> Parse<SupportsNot> for Parser<I>where
I: ParserInput,
impl<I> Parse<SupportsNot> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SupportsNot>
Source§impl<I> Parse<SupportsOr> for Parser<I>where
I: ParserInput,
impl<I> Parse<SupportsOr> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<SupportsOr>
Source§impl<I> Parse<TypeSelector> for Parser<I>where
I: ParserInput,
impl<I> Parse<TypeSelector> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<TypeSelector>
Source§impl<I> Parse<UnicodeRange> for Parser<I>where
I: ParserInput,
impl<I> Parse<UnicodeRange> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<UnicodeRange>
Source§impl<I> Parse<UnknownDimension> for Parser<I>where
I: ParserInput,
impl<I> Parse<UnknownDimension> for Parser<I>where
I: ParserInput,
fn parse(&mut self) -> PResult<UnknownDimension>
Source§impl<I> Parse<Vec<DeclarationOrAtRule>> for Parser<I>where
I: ParserInput,
impl<I> Parse<Vec<DeclarationOrAtRule>> for Parser<I>where
I: ParserInput,
Source§impl<I> Parse<Vec<StyleBlock>> for Parser<I>where
I: ParserInput,
impl<I> Parse<Vec<StyleBlock>> for Parser<I>where
I: ParserInput,
Auto Trait Implementations§
impl<I> Freeze for Parser<I>where
I: Freeze,
impl<I> RefUnwindSafe for Parser<I>where
I: RefUnwindSafe,
impl<I> Send for Parser<I>where
I: Send,
impl<I> Sync for Parser<I>where
I: Sync,
impl<I> Unpin for Parser<I>where
I: Unpin,
impl<I> UnwindSafe for Parser<I>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more