Struct selectors::parser::NthSelectorData
source · pub struct NthSelectorData {
pub ty: NthType,
pub is_function: bool,
pub a: i32,
pub b: i32,
}
Expand description
The properties that comprise an :nth- pseudoclass as of Selectors 3 (e.g., nth-child(An+B)). https://www.w3.org/TR/selectors-3/#nth-child-pseudo
Fields§
§ty: NthType
§is_function: bool
§a: i32
§b: i32
Implementations§
Trait Implementations§
source§impl Clone for NthSelectorData
impl Clone for NthSelectorData
source§fn clone(&self) -> NthSelectorData
fn clone(&self) -> NthSelectorData
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 PartialEq<NthSelectorData> for NthSelectorData
impl PartialEq<NthSelectorData> for NthSelectorData
source§fn eq(&self, other: &NthSelectorData) -> bool
fn eq(&self, other: &NthSelectorData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NthSelectorData
impl Eq for NthSelectorData
impl StructuralEq for NthSelectorData
impl StructuralPartialEq for NthSelectorData
Auto Trait Implementations§
impl RefUnwindSafe for NthSelectorData
impl Send for NthSelectorData
impl Sync for NthSelectorData
impl Unpin for NthSelectorData
impl UnwindSafe for NthSelectorData
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