pub struct SelectorList<Impl: SelectorImpl>(pub SmallVec<[Selector<Impl>; 1]>);
Tuple Fields§
§0: SmallVec<[Selector<Impl>; 1]>
Implementations§
Source§impl<Impl: SelectorImpl> SelectorList<Impl>
impl<Impl: SelectorImpl> SelectorList<Impl>
Sourcepub fn parse<'i, 't, P>(
parser: &P,
input: &mut CssParser<'i, 't>,
parse_relative: ParseRelative,
) -> 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>,
parse_relative: ParseRelative,
) -> 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.
Sourcepub fn replace_parent_selector(&self, parent: &[Selector<Impl>]) -> Self
pub fn replace_parent_selector(&self, parent: &[Selector<Impl>]) -> Self
Replaces the parent selector in all the items of the selector list.
Trait Implementations§
Source§impl<Impl: Clone + SelectorImpl> Clone for SelectorList<Impl>
impl<Impl: Clone + SelectorImpl> Clone for SelectorList<Impl>
Source§fn clone(&self) -> SelectorList<Impl>
fn clone(&self) -> SelectorList<Impl>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Impl: Debug + SelectorImpl> Debug for SelectorList<Impl>
impl<Impl: Debug + SelectorImpl> Debug for SelectorList<Impl>
Source§impl<Impl: PartialEq + SelectorImpl> PartialEq for SelectorList<Impl>
impl<Impl: PartialEq + SelectorImpl> PartialEq for SelectorList<Impl>
Source§impl<Impl: SelectorImpl> ToCss for SelectorList<Impl>
impl<Impl: SelectorImpl> ToCss for SelectorList<Impl>
impl<Impl: Eq + SelectorImpl> Eq for SelectorList<Impl>
impl<Impl: SelectorImpl> StructuralPartialEq for SelectorList<Impl>
Auto Trait Implementations§
impl<Impl> Freeze for SelectorList<Impl>
impl<Impl> RefUnwindSafe for SelectorList<Impl>where
<Impl as SelectorImpl>::Identifier: RefUnwindSafe,
<Impl as SelectorImpl>::LocalName: RefUnwindSafe,
<Impl as SelectorImpl>::AttrValue: RefUnwindSafe,
<Impl as SelectorImpl>::NamespaceUrl: RefUnwindSafe,
<Impl as SelectorImpl>::NamespacePrefix: RefUnwindSafe,
<Impl as SelectorImpl>::NonTSPseudoClass: RefUnwindSafe,
<Impl as SelectorImpl>::PseudoElement: RefUnwindSafe,
impl<Impl> Send for SelectorList<Impl>where
<Impl as SelectorImpl>::Identifier: Sync + Send,
<Impl as SelectorImpl>::LocalName: Sync + Send,
<Impl as SelectorImpl>::AttrValue: Sync + Send,
<Impl as SelectorImpl>::NamespaceUrl: Sync + Send,
<Impl as SelectorImpl>::NamespacePrefix: Sync + Send,
<Impl as SelectorImpl>::NonTSPseudoClass: Sync + Send,
<Impl as SelectorImpl>::PseudoElement: Sync + Send,
impl<Impl> Sync for SelectorList<Impl>where
<Impl as SelectorImpl>::Identifier: Sync + Send,
<Impl as SelectorImpl>::LocalName: Sync + Send,
<Impl as SelectorImpl>::AttrValue: Sync + Send,
<Impl as SelectorImpl>::NamespaceUrl: Sync + Send,
<Impl as SelectorImpl>::NamespacePrefix: Sync + Send,
<Impl as SelectorImpl>::NonTSPseudoClass: Sync + Send,
<Impl as SelectorImpl>::PseudoElement: Sync + Send,
impl<Impl> Unpin for SelectorList<Impl>where
<Impl as SelectorImpl>::Identifier: Unpin,
<Impl as SelectorImpl>::LocalName: Unpin,
<Impl as SelectorImpl>::AttrValue: Unpin,
<Impl as SelectorImpl>::NamespaceUrl: Unpin,
<Impl as SelectorImpl>::NamespacePrefix: Unpin,
<Impl as SelectorImpl>::NonTSPseudoClass: Unpin,
<Impl as SelectorImpl>::PseudoElement: Unpin,
impl<Impl> UnwindSafe for SelectorList<Impl>where
<Impl as SelectorImpl>::Identifier: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl>::LocalName: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl>::AttrValue: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl>::NamespaceUrl: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl>::NamespacePrefix: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl>::NonTSPseudoClass: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl>::PseudoElement: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more