Struct parcel_selectors::parser::SelectorList
source · pub struct SelectorList<'i, Impl: SelectorImpl<'i>>(pub SmallVec<[Selector<'i, Impl>; 1]>);
Tuple Fields§
§0: SmallVec<[Selector<'i, Impl>; 1]>
Implementations§
source§impl<'i, Impl: SelectorImpl<'i>> SelectorList<'i, Impl>
impl<'i, Impl: SelectorImpl<'i>> SelectorList<'i, Impl>
sourcepub fn parse<'t, P>(
parser: &P,
input: &mut CssParser<'i, 't>,
error_recovery: ParseErrorRecovery,
nesting_requirement: NestingRequirement,
) -> Result<Self, ParseError<'i, P::Error>>where
P: Parser<'i, Impl = Impl>,
pub fn parse<'t, P>(
parser: &P,
input: &mut CssParser<'i, 't>,
error_recovery: ParseErrorRecovery,
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.
pub fn parse_relative<'t, P>(
parser: &P,
input: &mut CssParser<'i, 't>,
error_recovery: ParseErrorRecovery,
nesting_requirement: NestingRequirement,
) -> Result<Self, ParseError<'i, P::Error>>where
P: Parser<'i, Impl = Impl>,
Trait Implementations§
source§impl<'i, Impl: Clone + SelectorImpl<'i>> Clone for SelectorList<'i, Impl>
impl<'i, Impl: Clone + SelectorImpl<'i>> Clone for SelectorList<'i, Impl>
source§fn clone(&self) -> SelectorList<'i, Impl>
fn clone(&self) -> SelectorList<'i, 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<'i, Impl: Debug + SelectorImpl<'i>> Debug for SelectorList<'i, Impl>
impl<'i, Impl: Debug + SelectorImpl<'i>> Debug for SelectorList<'i, Impl>
source§impl<'i, Impl: SelectorImpl<'i>> Display for SelectorList<'i, Impl>
impl<'i, Impl: SelectorImpl<'i>> Display for SelectorList<'i, Impl>
source§impl<'i, Impl: SelectorImpl<'i>> From<Component<'i, Impl>> for SelectorList<'i, Impl>
impl<'i, Impl: SelectorImpl<'i>> From<Component<'i, Impl>> for SelectorList<'i, Impl>
source§impl<'i, Impl: SelectorImpl<'i>> From<Selector<'i, Impl>> for SelectorList<'i, Impl>
impl<'i, Impl: SelectorImpl<'i>> From<Selector<'i, Impl>> for SelectorList<'i, Impl>
source§impl<'i, Impl: Hash + SelectorImpl<'i>> Hash for SelectorList<'i, Impl>
impl<'i, Impl: Hash + SelectorImpl<'i>> Hash for SelectorList<'i, Impl>
source§impl<'i, Impl: PartialEq + SelectorImpl<'i>> PartialEq for SelectorList<'i, Impl>
impl<'i, Impl: PartialEq + SelectorImpl<'i>> PartialEq for SelectorList<'i, Impl>
source§impl<'i, Impl: SelectorImpl<'i>> ToCss for SelectorList<'i, Impl>
impl<'i, Impl: SelectorImpl<'i>> ToCss for SelectorList<'i, Impl>
impl<'i, Impl: Eq + SelectorImpl<'i>> Eq for SelectorList<'i, Impl>
impl<'i, Impl: SelectorImpl<'i>> StructuralPartialEq for SelectorList<'i, Impl>
Auto Trait Implementations§
impl<'i, Impl> Freeze for SelectorList<'i, Impl>
impl<'i, Impl> RefUnwindSafe for SelectorList<'i, Impl>where
<Impl as SelectorImpl<'i>>::NamespaceUrl: RefUnwindSafe,
<Impl as SelectorImpl<'i>>::NamespacePrefix: RefUnwindSafe,
<Impl as SelectorImpl<'i>>::Identifier: RefUnwindSafe,
<Impl as SelectorImpl<'i>>::LocalName: RefUnwindSafe,
<Impl as SelectorImpl<'i>>::AttrValue: RefUnwindSafe,
<Impl as SelectorImpl<'i>>::NonTSPseudoClass: RefUnwindSafe,
<Impl as SelectorImpl<'i>>::VendorPrefix: RefUnwindSafe,
<Impl as SelectorImpl<'i>>::PseudoElement: RefUnwindSafe,
impl<'i, Impl> Send for SelectorList<'i, Impl>where
<Impl as SelectorImpl<'i>>::NamespaceUrl: Send,
<Impl as SelectorImpl<'i>>::NamespacePrefix: Send,
<Impl as SelectorImpl<'i>>::Identifier: Send,
<Impl as SelectorImpl<'i>>::LocalName: Send,
<Impl as SelectorImpl<'i>>::AttrValue: Send,
<Impl as SelectorImpl<'i>>::NonTSPseudoClass: Send,
<Impl as SelectorImpl<'i>>::VendorPrefix: Send,
<Impl as SelectorImpl<'i>>::PseudoElement: Send,
impl<'i, Impl> Sync for SelectorList<'i, Impl>where
<Impl as SelectorImpl<'i>>::NamespaceUrl: Sync,
<Impl as SelectorImpl<'i>>::NamespacePrefix: Sync,
<Impl as SelectorImpl<'i>>::Identifier: Sync,
<Impl as SelectorImpl<'i>>::LocalName: Sync,
<Impl as SelectorImpl<'i>>::AttrValue: Sync,
<Impl as SelectorImpl<'i>>::NonTSPseudoClass: Sync,
<Impl as SelectorImpl<'i>>::VendorPrefix: Sync,
<Impl as SelectorImpl<'i>>::PseudoElement: Sync,
impl<'i, Impl> Unpin for SelectorList<'i, Impl>where
<Impl as SelectorImpl<'i>>::NamespaceUrl: Unpin,
<Impl as SelectorImpl<'i>>::NamespacePrefix: Unpin,
<Impl as SelectorImpl<'i>>::Identifier: Unpin,
<Impl as SelectorImpl<'i>>::LocalName: Unpin,
<Impl as SelectorImpl<'i>>::AttrValue: Unpin,
<Impl as SelectorImpl<'i>>::NonTSPseudoClass: Unpin,
<Impl as SelectorImpl<'i>>::VendorPrefix: Unpin,
<Impl as SelectorImpl<'i>>::PseudoElement: Unpin,
impl<'i, Impl> UnwindSafe for SelectorList<'i, Impl>where
<Impl as SelectorImpl<'i>>::NamespaceUrl: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl<'i>>::NamespacePrefix: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl<'i>>::Identifier: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl<'i>>::LocalName: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl<'i>>::AttrValue: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl<'i>>::NonTSPseudoClass: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl<'i>>::VendorPrefix: RefUnwindSafe + UnwindSafe,
<Impl as SelectorImpl<'i>>::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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)