Enum selectors::parser::SimpleSelector
[−]
[src]
pub enum SimpleSelector<Impl: SelectorImpl> { ID(Atom), Class(Atom), LocalName(LocalName), Namespace(Namespace), AttrExists(AttrSelector), AttrEqual(AttrSelector, String, CaseSensitivity), AttrIncludes(AttrSelector, String), AttrDashMatch(AttrSelector, String, String), AttrPrefixMatch(AttrSelector, String), AttrSubstringMatch(AttrSelector, String), AttrSuffixMatch(AttrSelector, String), Negation(Vec<SimpleSelector<Impl>>), FirstChild, LastChild, OnlyChild, Root, Empty, NthChild(i32, i32), NthLastChild(i32, i32), NthOfType(i32, i32), NthLastOfType(i32, i32), FirstOfType, LastOfType, OnlyOfType, NonTSPseudoClass(Impl::NonTSPseudoClass), }
Variants
ID(Atom)
Class(Atom)
LocalName(LocalName)
Namespace(Namespace)
AttrExists(AttrSelector)
AttrEqual(AttrSelector, String, CaseSensitivity)
AttrIncludes(AttrSelector, String)
AttrDashMatch(AttrSelector, String, String)
AttrPrefixMatch(AttrSelector, String)
AttrSubstringMatch(AttrSelector, String)
AttrSuffixMatch(AttrSelector, String)
Negation(Vec<SimpleSelector<Impl>>)
FirstChild
LastChild
OnlyChild
Root
Empty
NthChild(i32, i32)
NthLastChild(i32, i32)
NthOfType(i32, i32)
NthLastOfType(i32, i32)
FirstOfType
LastOfType
OnlyOfType
NonTSPseudoClass(Impl::NonTSPseudoClass)
Trait Implementations
impl<Impl: Debug + SelectorImpl> Debug for SimpleSelector<Impl> where Impl::NonTSPseudoClass: Debug
[src]
impl<Impl: Hash + SelectorImpl> Hash for SimpleSelector<Impl> where Impl::NonTSPseudoClass: Hash
[src]
fn hash<__HImpl: Hasher>(&self, __arg_0: &mut __HImpl)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<Impl: Clone + SelectorImpl> Clone for SimpleSelector<Impl> where Impl::NonTSPseudoClass: Clone
[src]
fn clone(&self) -> SimpleSelector<Impl>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Impl: PartialEq + SelectorImpl> PartialEq for SimpleSelector<Impl> where Impl::NonTSPseudoClass: PartialEq
[src]
fn eq(&self, __arg_0: &SimpleSelector<Impl>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SimpleSelector<Impl>) -> bool
This method tests for !=
.