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§
type SelectorComponent: Parse<'a> + SelectorComponent<'a>
Provided Methods§
Sourcefn parse_compound_selector_part<I>(
p: &mut Parser<'a, I>,
) -> Result<Option<Self::SelectorComponent>>
fn parse_compound_selector_part<I>( p: &mut Parser<'a, I>, ) -> Result<Option<Self::SelectorComponent>>
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.
fn parse_compound_selector<I>( p: &mut Parser<'a, I>, ) -> Result<Vec<'a, Self::SelectorComponent>>
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.