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

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

Methods

impl<Impl: SelectorImpl> SelectorList<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.

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

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Serialize self in CSS syntax, writing to dest.

Serialize self in CSS syntax and return a string. Read more

Auto Trait Implementations

impl<Impl> Send for SelectorList<Impl> where
    <Impl as SelectorImpl>::AttrValue: Send + Sync,
    <Impl as SelectorImpl>::ClassName: 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>::ClassName: 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