pub enum SemanticKind {
Show 25 variants
None,
Id,
Tag,
Class,
Wildcard,
Attribute,
Namespace,
Combinator,
PseudoClass,
PseudoElement,
LegacyPseudoElement,
FunctionalPseudoClass,
FunctionalPseudoElement,
AtKeyword,
Prelude,
Declaration,
StyleValueKeyword,
StyleValueDimension,
StyleValueNumber,
StyleValueString,
StyleValueUrl,
StyleValueColor,
StyleValueFunction,
StyleValueImportant,
Punctuation,
}Variants§
None
Id
Tag
Class
Wildcard
Attribute
Namespace
Combinator
PseudoClass
PseudoElement
LegacyPseudoElement
FunctionalPseudoClass
FunctionalPseudoElement
AtKeyword
Prelude
Declaration
StyleValueKeyword
StyleValueDimension
StyleValueNumber
StyleValueString
StyleValueUrl
StyleValueColor
StyleValueFunction
StyleValueImportant
Punctuation
Implementations§
Source§impl SemanticKind
impl SemanticKind
Sourcepub fn from_node_id(node_id: NodeId) -> Option<Self>
pub fn from_node_id(node_id: NodeId) -> Option<Self>
Maps a CSS AST NodeId to a SemanticKind, if one exists. Returns None for nodes that don’t have a direct semantic kind mapping.
Trait Implementations§
Source§impl Clone for SemanticKind
impl Clone for SemanticKind
Source§fn clone(&self) -> SemanticKind
fn clone(&self) -> SemanticKind
Returns a duplicate 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 Debug for SemanticKind
impl Debug for SemanticKind
Source§impl Display for SemanticKind
impl Display for SemanticKind
Source§impl Hash for SemanticKind
impl Hash for SemanticKind
Source§impl Ord for SemanticKind
impl Ord for SemanticKind
Source§fn cmp(&self, other: &SemanticKind) -> Ordering
fn cmp(&self, other: &SemanticKind) -> Ordering
1.21.0 · 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 SemanticKind
impl PartialEq for SemanticKind
Source§impl PartialOrd for SemanticKind
impl PartialOrd for SemanticKind
Source§impl VariantNames for SemanticKind
impl VariantNames for SemanticKind
impl Copy for SemanticKind
impl Eq for SemanticKind
impl StructuralPartialEq for SemanticKind
Auto Trait Implementations§
impl Freeze for SemanticKind
impl RefUnwindSafe for SemanticKind
impl Send for SemanticKind
impl Sync for SemanticKind
impl Unpin for SemanticKind
impl UnwindSafe for SemanticKind
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