Struct selectors::parser::NthOfSelectorData
source · pub struct NthOfSelectorData<Impl: SelectorImpl>(ThinArc<NthSelectorData, Selector<Impl>>);
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
Tuple Fields§
§0: ThinArc<NthSelectorData, Selector<Impl>>
Implementations§
source§impl<Impl: SelectorImpl> NthOfSelectorData<Impl>
impl<Impl: SelectorImpl> NthOfSelectorData<Impl>
sourcepub fn new<I>(nth_data: &NthSelectorData, selectors: I) -> Self
pub fn new<I>(nth_data: &NthSelectorData, selectors: I) -> Self
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 for NthOfSelectorData<Impl>
impl<Impl: PartialEq + SelectorImpl> PartialEq for NthOfSelectorData<Impl>
source§impl<Impl: SelectorImpl> ToShmem for NthOfSelectorData<Impl>
impl<Impl: SelectorImpl> ToShmem for NthOfSelectorData<Impl>
impl<Impl: Eq + SelectorImpl> Eq for NthOfSelectorData<Impl>
impl<Impl: SelectorImpl> StructuralPartialEq for NthOfSelectorData<Impl>
Auto Trait Implementations§
impl<Impl> Freeze for NthOfSelectorData<Impl>
impl<Impl> RefUnwindSafe for NthOfSelectorData<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 NthOfSelectorData<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 NthOfSelectorData<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 NthOfSelectorData<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 NthOfSelectorData<Impl>where
<Impl as SelectorImpl>::Identifier: UnwindSafe + RefUnwindSafe,
<Impl as SelectorImpl>::LocalName: UnwindSafe + RefUnwindSafe,
<Impl as SelectorImpl>::AttrValue: UnwindSafe + RefUnwindSafe,
<Impl as SelectorImpl>::NamespaceUrl: UnwindSafe + RefUnwindSafe,
<Impl as SelectorImpl>::NamespacePrefix: 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
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
)