CompoundSelector

Trait CompoundSelector 

Source
pub trait CompoundSelector<'a>: Sized + Parse<'a> {
    type SelectorComponent: Parse<'a> + SelectorComponent<'a>;

    // Provided methods
    fn parse_compound_selector_part<I>(
        p: &mut Parser<'a, I>,
    ) -> Result<Option<Self::SelectorComponent>>
       where I: Iterator<Item = Cursor> + Clone { ... }
    fn parse_compound_selector<I>(
        p: &mut Parser<'a, I>,
    ) -> Result<Vec<'a, Self::SelectorComponent>>
       where I: Iterator<Item = Cursor> + Clone { ... }
}

Required Associated Types§

Provided Methods§

Source

fn parse_compound_selector_part<I>( p: &mut Parser<'a, I>, ) -> Result<Option<Self::SelectorComponent>>
where I: Iterator<Item = Cursor> + Clone,

Parse the next selector component, or return Ok(None) if at a terminator. This allows implementors to process components incrementally without building the full Vec first.

Source

fn parse_compound_selector<I>( p: &mut Parser<'a, I>, ) -> Result<Vec<'a, Self::SelectorComponent>>
where I: Iterator<Item = Cursor> + Clone,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§