Struct selectors::parser::SelectorIter[][src]

pub struct SelectorIter<'a, Impl: 'a + SelectorImpl> { /* fields omitted */ }

Implementations

impl<'a, Impl: 'a + SelectorImpl> SelectorIter<'a, Impl>[src]

pub fn next_sequence(&mut self) -> Option<Combinator>[src]

Prepares this iterator to point to the next sequence to the left, returning the combinator if the sequence was found.

pub fn selector_length(&self) -> usize[src]

Returns remaining count of the simple selectors and combinators in the Selector.

Trait Implementations

impl<'a, Impl: Clone + 'a + SelectorImpl> Clone for SelectorIter<'a, Impl>[src]

impl<'a, Impl: SelectorImpl> Debug for SelectorIter<'a, Impl>[src]

impl<'a, Impl: SelectorImpl> Iterator for SelectorIter<'a, Impl>[src]

type Item = &'a Component<Impl>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, Impl> RefUnwindSafe for SelectorIter<'a, Impl> where
    <Impl as SelectorImpl>::AttrValue: RefUnwindSafe,
    <Impl as SelectorImpl>::Identifier: RefUnwindSafe,
    <Impl as SelectorImpl>::LocalName: RefUnwindSafe,
    <Impl as SelectorImpl>::NamespacePrefix: RefUnwindSafe,
    <Impl as SelectorImpl>::NamespaceUrl: RefUnwindSafe,
    <Impl as SelectorImpl>::NonTSPseudoClass: RefUnwindSafe,
    <Impl as SelectorImpl>::PseudoElement: RefUnwindSafe

impl<'a, Impl> Send for SelectorIter<'a, Impl> where
    <Impl as SelectorImpl>::AttrValue: Send + Sync,
    <Impl as SelectorImpl>::Identifier: Send + Sync,
    <Impl as SelectorImpl>::LocalName: Send + Sync,
    <Impl as SelectorImpl>::NamespacePrefix: Send + Sync,
    <Impl as SelectorImpl>::NamespaceUrl: Send + Sync,
    <Impl as SelectorImpl>::NonTSPseudoClass: Send + Sync,
    <Impl as SelectorImpl>::PseudoElement: Send + Sync

impl<'a, Impl> Sync for SelectorIter<'a, Impl> where
    <Impl as SelectorImpl>::AttrValue: Send + Sync,
    <Impl as SelectorImpl>::Identifier: Send + Sync,
    <Impl as SelectorImpl>::LocalName: Send + Sync,
    <Impl as SelectorImpl>::NamespacePrefix: Send + Sync,
    <Impl as SelectorImpl>::NamespaceUrl: Send + Sync,
    <Impl as SelectorImpl>::NonTSPseudoClass: Send + Sync,
    <Impl as SelectorImpl>::PseudoElement: Send + Sync

impl<'a, Impl> Unpin for SelectorIter<'a, Impl>

impl<'a, Impl> UnwindSafe for SelectorIter<'a, Impl> where
    <Impl as SelectorImpl>::AttrValue: RefUnwindSafe,
    <Impl as SelectorImpl>::Identifier: RefUnwindSafe,
    <Impl as SelectorImpl>::LocalName: RefUnwindSafe,
    <Impl as SelectorImpl>::NamespacePrefix: RefUnwindSafe,
    <Impl as SelectorImpl>::NamespaceUrl: RefUnwindSafe,
    <Impl as SelectorImpl>::NonTSPseudoClass: RefUnwindSafe,
    <Impl as SelectorImpl>::PseudoElement: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.