pub enum SelectorNodeType {
Namespace(String),
Universal,
TypeName(String),
Id(String),
Class(String),
Attribute {
name: String,
attr_matcher: SelectorAttributeType,
case_sensitive: bool,
},
NextSibling(Box<SelectorNode>),
SubsequentSibling(Box<SelectorNode>),
Child(Box<SelectorNode>),
Descendent(Box<SelectorNode>),
PseudoClass(String),
PseudoElement(String, Option<Box<[Unit]>>),
}Variants§
Namespace(String)
Universal
TypeName(String)
Id(String)
Class(String)
Attribute
NextSibling(Box<SelectorNode>)
SubsequentSibling(Box<SelectorNode>)
Child(Box<SelectorNode>)
Descendent(Box<SelectorNode>)
PseudoClass(String)
PseudoElement(String, Option<Box<[Unit]>>)
Trait Implementations§
Source§impl Clone for SelectorNodeType
impl Clone for SelectorNodeType
Source§fn clone(&self) -> SelectorNodeType
fn clone(&self) -> SelectorNodeType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SelectorNodeType
impl RefUnwindSafe for SelectorNodeType
impl Send for SelectorNodeType
impl Sync for SelectorNodeType
impl Unpin for SelectorNodeType
impl UnsafeUnpin for SelectorNodeType
impl UnwindSafe for SelectorNodeType
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