Struct parcel_selectors::parser::SelectorList [−][src]
pub struct SelectorList<Impl: SelectorImpl>(pub SmallVec<[Selector<Impl>; 1]>);
Tuple Fields
0: SmallVec<[Selector<Impl>; 1]>
Implementations
pub fn parse<'i, 't, P>(
parser: &P,
input: &mut CssParser<'i, 't>,
nesting_requirement: NestingRequirement
) -> Result<Self, ParseError<'i, P::Error>> where
P: Parser<'i, Impl = Impl>,
pub fn parse<'i, 't, P>(
parser: &P,
input: &mut CssParser<'i, 't>,
nesting_requirement: NestingRequirement
) -> Result<Self, ParseError<'i, P::Error>> where
P: Parser<'i, Impl = Impl>,
Parse a comma-separated list of Selectors. https://drafts.csswg.org/selectors/#grouping
Return the Selectors or Err if there is an invalid selector.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more