Struct selectors::parser::NthOfSelectorData
source · pub struct NthOfSelectorData<Impl: SelectorImpl>(_);
Expand description
The properties that comprise an :nth- pseudoclass as of Selectors 4 (e.g., nth-child(An+B [of S]?)). https://www.w3.org/TR/selectors-4/#nth-child-pseudo
Implementations§
source§impl<Impl: SelectorImpl> NthOfSelectorData<Impl>
impl<Impl: SelectorImpl> NthOfSelectorData<Impl>
sourcepub fn new<I>(nth_data: &NthSelectorData, selectors: I) -> Selfwhere
I: Iterator<Item = Selector<Impl>> + ExactSizeIterator,
pub fn new<I>(nth_data: &NthSelectorData, selectors: I) -> Selfwhere I: Iterator<Item = Selector<Impl>> + ExactSizeIterator,
Returns selector data for :nth-{,last-}{child,of-type}(An+B [of S])
sourcepub fn nth_data(&self) -> &NthSelectorData
pub fn nth_data(&self) -> &NthSelectorData
Returns the An+B part of the selector
Trait Implementations§
source§impl<Impl: Clone + SelectorImpl> Clone for NthOfSelectorData<Impl>
impl<Impl: Clone + SelectorImpl> Clone for NthOfSelectorData<Impl>
source§fn clone(&self) -> NthOfSelectorData<Impl>
fn clone(&self) -> NthOfSelectorData<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: PartialEq + SelectorImpl> PartialEq<NthOfSelectorData<Impl>> for NthOfSelectorData<Impl>
impl<Impl: PartialEq + SelectorImpl> PartialEq<NthOfSelectorData<Impl>> for NthOfSelectorData<Impl>
source§fn eq(&self, other: &NthOfSelectorData<Impl>) -> bool
fn eq(&self, other: &NthOfSelectorData<Impl>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Impl: Eq + SelectorImpl> Eq for NthOfSelectorData<Impl>
impl<Impl: SelectorImpl> StructuralEq for NthOfSelectorData<Impl>
impl<Impl: SelectorImpl> StructuralPartialEq for NthOfSelectorData<Impl>
Auto Trait Implementations§
impl<Impl> RefUnwindSafe for NthOfSelectorData<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 NthOfSelectorData<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 NthOfSelectorData<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 NthOfSelectorData<Impl>where <Impl as SelectorImpl>::AttrValue: Unpin, <Impl as SelectorImpl>::Identifier: Unpin, <Impl as SelectorImpl>::LocalName: Unpin, <Impl as SelectorImpl>::NamespacePrefix: Unpin, <Impl as SelectorImpl>::NamespaceUrl: Unpin, <Impl as SelectorImpl>::NonTSPseudoClass: Unpin, <Impl as SelectorImpl>::PseudoElement: Unpin,
impl<Impl> UnwindSafe for NthOfSelectorData<Impl>where <Impl as SelectorImpl>::AttrValue: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::Identifier: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::LocalName: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::NamespacePrefix: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::NamespaceUrl: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::NonTSPseudoClass: UnwindSafe + RefUnwindSafe, <Impl as SelectorImpl>::PseudoElement: UnwindSafe + RefUnwindSafe,
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