Struct swc_css_parser::parser::Parser
source · [−]pub struct Parser<I> where
I: ParserInput, { /* private fields */ }
Implementations
sourceimpl<I> Parser<I> where
I: ParserInput,
impl<I> Parser<I> where
I: ParserInput,
pub fn parse_simple_block(&mut self, ending: char) -> PResult<SimpleBlock>
pub fn parse_component_value(&mut self) -> PResult<Value>
sourceimpl<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
sourceimpl<I: Debug> Debug for Parser<I> where
I: ParserInput,
impl<I: Debug> Debug for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<Angle> for Parser<I> where
I: ParserInput,
impl<I> Parse<Angle> for Parser<I> where
I: ParserInput,
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<CharsetRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<CharsetRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<CharsetRule>
sourceimpl<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>
sourceimpl<I> Parse<ColorProfileRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<ColorProfileRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<ColorProfileRule>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<CounterStyleRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<CounterStyleRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<CounterStyleRule>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<Dimension> for Parser<I> where
I: ParserInput,
impl<I> Parse<Dimension> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<DocumentRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<DocumentRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<DocumentRule>
sourceimpl<I> Parse<DocumentRuleMatchingFunction> for Parser<I> where
I: ParserInput,
impl<I> Parse<DocumentRuleMatchingFunction> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<DocumentRuleMatchingFunction>
sourceimpl<I> Parse<Flex> for Parser<I> where
I: ParserInput,
impl<I> Parse<Flex> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<FontFaceRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<FontFaceRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<FontFaceRule>
sourceimpl<I> Parse<Frequency> for Parser<I> where
I: ParserInput,
impl<I> Parse<Frequency> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<Function> for Parser<I> where
I: ParserInput,
impl<I> Parse<Function> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<HexColor> for Parser<I> where
I: ParserInput,
impl<I> Parse<HexColor> for Parser<I> where
I: ParserInput,
sourceimpl<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>
sourceimpl<I> Parse<Ident> for Parser<I> where
I: ParserInput,
impl<I> Parse<Ident> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<ImportRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<ImportRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<ImportRule>
sourceimpl<I> Parse<ImportantFlag> for Parser<I> where
I: ParserInput,
impl<I> Parse<ImportantFlag> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<ImportantFlag>
sourceimpl<I> Parse<KeyframeBlock> for Parser<I> where
I: ParserInput,
impl<I> Parse<KeyframeBlock> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<KeyframeBlock>
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<KeyframesRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<KeyframesRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<KeyframesRule>
sourceimpl<I> Parse<LayerName> for Parser<I> where
I: ParserInput,
impl<I> Parse<LayerName> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<LayerRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<LayerRule> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<Length> for Parser<I> where
I: ParserInput,
impl<I> Parse<Length> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<MediaAnd> for Parser<I> where
I: ParserInput,
impl<I> Parse<MediaAnd> for Parser<I> where
I: ParserInput,
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<MediaNot> for Parser<I> where
I: ParserInput,
impl<I> Parse<MediaNot> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<MediaOr> for Parser<I> where
I: ParserInput,
impl<I> Parse<MediaOr> for Parser<I> where
I: ParserInput,
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<MediaRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<MediaRule> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<NamespaceRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<NamespaceRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<NamespaceRule>
sourceimpl<I> Parse<NsPrefix> for Parser<I> where
I: ParserInput,
impl<I> Parse<NsPrefix> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<Nth> for Parser<I> where
I: ParserInput,
impl<I> Parse<Nth> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<Number> for Parser<I> where
I: ParserInput,
impl<I> Parse<Number> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<PageMarginRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<PageMarginRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<PageMarginRule>
sourceimpl<I> Parse<PageRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<PageRule> for Parser<I> where
I: ParserInput,
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<PropertyRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<PropertyRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<PropertyRule>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<Str> for Parser<I> where
I: ParserInput,
impl<I> Parse<Str> for Parser<I> where
I: ParserInput,
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<SupportsRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<SupportsRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<SupportsRule>
sourceimpl<I> Parse<Time> for Parser<I> where
I: ParserInput,
impl<I> Parse<Time> for Parser<I> where
I: ParserInput,
sourceimpl<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>
sourceimpl<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>
sourceimpl<I> Parse<Urange> for Parser<I> where
I: ParserInput,
impl<I> Parse<Urange> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<Url> for Parser<I> where
I: ParserInput,
impl<I> Parse<Url> for Parser<I> where
I: ParserInput,
sourceimpl<I> Parse<Vec<DeclarationBlockItem, Global>> for Parser<I> where
I: ParserInput,
impl<I> Parse<Vec<DeclarationBlockItem, Global>> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<Vec<DeclarationBlockItem>>
sourceimpl<I> Parse<ViewportRule> for Parser<I> where
I: ParserInput,
impl<I> Parse<ViewportRule> for Parser<I> where
I: ParserInput,
fn parse(&mut self) -> PResult<ViewportRule>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more