Struct swc_css_parser::parser::Parser
source · 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, Global>> for Parser<I>where
I: ParserInput,
impl<I> Parse<Vec<DeclarationOrAtRule, Global>> for Parser<I>where I: ParserInput,
source§impl<I> Parse<Vec<StyleBlock, Global>> for Parser<I>where
I: ParserInput,
impl<I> Parse<Vec<StyleBlock, Global>> for Parser<I>where I: ParserInput,
Auto Trait Implementations§
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> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
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> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.