Trait selectors::parser::Parser [] [src]

pub trait Parser<'i> {
    type Impl: SelectorImpl;
    type Error: 'i + From<SelectorParseErrorKind<'i>>;
    fn pseudo_element_allows_single_colon(name: &str) -> bool { ... }
fn parse_slotted(&self) -> bool { ... }
fn parse_non_ts_pseudo_class(
        &self,
        location: SourceLocation,
        name: CowRcStr<'i>
    ) -> Result<<Self::Impl as SelectorImpl>::NonTSPseudoClass, ParseError<'i, Self::Error>> { ... }
fn parse_non_ts_functional_pseudo_class<'t>(
        &self,
        name: CowRcStr<'i>,
        arguments: &mut CssParser<'i, 't>
    ) -> Result<<Self::Impl as SelectorImpl>::NonTSPseudoClass, ParseError<'i, Self::Error>> { ... }
fn parse_pseudo_element(
        &self,
        location: SourceLocation,
        name: CowRcStr<'i>
    ) -> Result<<Self::Impl as SelectorImpl>::PseudoElement, ParseError<'i, Self::Error>> { ... }
fn parse_functional_pseudo_element<'t>(
        &self,
        name: CowRcStr<'i>,
        arguments: &mut CssParser<'i, 't>
    ) -> Result<<Self::Impl as SelectorImpl>::PseudoElement, ParseError<'i, Self::Error>> { ... }
fn default_namespace(
        &self
    ) -> Option<<Self::Impl as SelectorImpl>::NamespaceUrl> { ... }
fn namespace_for_prefix(
        &self,
        _prefix: &<Self::Impl as SelectorImpl>::NamespacePrefix
    ) -> Option<<Self::Impl as SelectorImpl>::NamespaceUrl> { ... } }

Associated Types

Provided Methods

Whether the name is a pseudo-element that can be specified with the single colon syntax in addition to the double-colon syntax.

Whether to parse the ::slotted() pseudo-element.

This function can return an "Err" pseudo-element in order to support CSS2.1 pseudo-elements.

Implementors