#[repr(C, u8)]pub enum CssPathSelector {
Global,
Root(CssScopeRange),
Type(NodeTypeTag),
Class(AzString),
Id(AzString),
PseudoSelector(CssPathPseudoSelector),
Attribute(CssAttributeSelector),
DirectChildren,
Children,
AdjacentSibling,
GeneralSibling,
}Variants§
Global
Represents the * selector
Root(CssScopeRange)
Scope marker carrying a node’s subtree range [start, end] (inclusive
flat NodeIds; end = start + estimated_total_children). Matches a node
iff start <= node <= end. Synthesized at flatten time and push_front-ed
onto every inline (with_css/set_css) rule’s path, so the rule compounds
with the parse_inline * wrapper ([Root(s,e), Global, …]) and is scoped
to that node’s subtree instead of leaking to the whole tree (#47). Because
the flat arena lays subtrees out contiguously, this range is also the unit
of future parallel per-subtree cascading.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more