Struct selectors::parser::SelectorList[][src]

pub struct SelectorList<Impl: SelectorImpl>(pub SmallVec<[Selector<Impl>; 1]>);

Implementations

impl<Impl: SelectorImpl> SelectorList<Impl>[src]

pub fn parse<'i, 't, P>(
    parser: &P,
    input: &mut CssParser<'i, 't>
) -> Result<Self, ParseError<'i, P::Error>> where
    P: Parser<'i, Impl = Impl>, 
[src]

Parse a comma-separated list of Selectors. https://drafts.csswg.org/selectors/#grouping

Return the Selectors or Err if there is an invalid selector.

pub fn from_vec(v: Vec<Selector<Impl>>) -> Self[src]

Creates a SelectorList from a Vec of selectors. Used in tests.

Trait Implementations

impl<Impl: Clone + SelectorImpl> Clone for SelectorList<Impl>[src]

impl<Impl: Debug + SelectorImpl> Debug for SelectorList<Impl>[src]

impl<Impl: Eq + SelectorImpl> Eq for SelectorList<Impl>[src]

impl<Impl: PartialEq + SelectorImpl> PartialEq<SelectorList<Impl>> for SelectorList<Impl>[src]

impl<Impl: SelectorImpl> StructuralEq for SelectorList<Impl>[src]

impl<Impl: SelectorImpl> StructuralPartialEq for SelectorList<Impl>[src]

impl<Impl: SelectorImpl> ToCss for SelectorList<Impl>[src]

Auto Trait Implementations

impl<Impl> RefUnwindSafe for SelectorList<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<Impl> Send for SelectorList<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<Impl> Sync for SelectorList<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<Impl> Unpin for SelectorList<Impl>

impl<Impl> UnwindSafe for SelectorList<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<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.