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§
UniversalSelector
*
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)
DescendantCombinator
a b
ChildCombinator
a > b
AdjacentCombinator
a + b
Trait Implementations§
Source§impl<'a> Clone for SelectorToken<'a>
impl<'a> Clone for SelectorToken<'a>
Source§fn clone(&self) -> SelectorToken<'a>
fn clone(&self) -> SelectorToken<'a>
Returns a copy 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<'a> Debug for SelectorToken<'a>
impl<'a> Debug for SelectorToken<'a>
Source§impl<'a> PartialEq for SelectorToken<'a>
impl<'a> PartialEq for SelectorToken<'a>
impl<'a> Copy for SelectorToken<'a>
impl<'a> StructuralPartialEq for SelectorToken<'a>
Auto Trait Implementations§
impl<'a> Freeze for SelectorToken<'a>
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§
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