#[repr(C, u8)]pub enum CssPathSelector {
Global,
Type(NodeTypeTag),
Class(AzString),
Id(AzString),
PseudoSelector(CssPathPseudoSelector),
Attribute(CssAttributeSelector),
DirectChildren,
Children,
AdjacentSibling,
GeneralSibling,
}Variants§
Global
Represents the * selector
Type(NodeTypeTag)
div, p, etc.
Class(AzString)
.something
Id(AzString)
#something
PseudoSelector(CssPathPseudoSelector)
:something
Attribute(CssAttributeSelector)
[attr], [attr="value"], [attr~="value"], etc.
DirectChildren
Represents the > selector (direct child)
Children
Represents the selector (descendant)
AdjacentSibling
Represents the + selector (adjacent sibling)
GeneralSibling
Represents the ~ selector (general sibling)
Trait Implementations§
Source§impl Clone for CssPathSelector
impl Clone for CssPathSelector
Source§fn clone(&self) -> CssPathSelector
fn clone(&self) -> CssPathSelector
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 moreSource§impl Debug for CssPathSelector
impl Debug for CssPathSelector
Source§impl Default for CssPathSelector
impl Default for CssPathSelector
Source§fn default() -> CssPathSelector
fn default() -> CssPathSelector
Returns the “default value” for a type. Read more
Source§impl Display for CssPathSelector
impl Display for CssPathSelector
Source§impl FromIterator<CssPathSelector> for CssPathSelectorVec
impl FromIterator<CssPathSelector> for CssPathSelectorVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssPathSelector>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssPathSelector>,
Creates a value from an iterator. Read more
Source§impl Hash for CssPathSelector
impl Hash for CssPathSelector
Source§impl Ord for CssPathSelector
impl Ord for CssPathSelector
Source§fn cmp(&self, other: &CssPathSelector) -> Ordering
fn cmp(&self, other: &CssPathSelector) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CssPathSelector
impl PartialEq for CssPathSelector
Source§fn eq(&self, other: &CssPathSelector) -> bool
fn eq(&self, other: &CssPathSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CssPathSelector
impl PartialOrd for CssPathSelector
impl Eq for CssPathSelector
impl StructuralPartialEq for CssPathSelector
Auto Trait Implementations§
impl Freeze for CssPathSelector
impl RefUnwindSafe for CssPathSelector
impl Send for CssPathSelector
impl Sync for CssPathSelector
impl Unpin for CssPathSelector
impl UnsafeUnpin for CssPathSelector
impl UnwindSafe for CssPathSelector
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