Enum simplecss::SelectorToken [−][src]
pub enum SelectorToken<'a> { UniversalSelector, TypeSelector(&'a str), ClassSelector(&'a str), IdSelector(&'a str), AttributeSelector(&'a str, AttributeOperator<'a>), PseudoClass(&'a str), LangPseudoClass(&'a str), DescendantCombinator, ChildCombinator, AdjacentCombinator, }
Expand description
A selector token.
Variants
*
TypeSelector(&'a str)
div
ClassSelector(&'a str)
.class
IdSelector(&'a str)
#id
AttributeSelector(&'a str, AttributeOperator<'a>)
[color=red]
PseudoClass(&'a str)
:first-child
LangPseudoClass(&'a str)
:lang(en)
a b
a > b
a + b
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SelectorToken<'a>
impl<'a> Send for SelectorToken<'a>
impl<'a> Sync for SelectorToken<'a>
impl<'a> Unpin for SelectorToken<'a>
impl<'a> UnwindSafe for SelectorToken<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more