Enum selectors::parser::SimpleSelector [] [src]

pub enum SimpleSelector<Impl: SelectorImpl> {
    ID(Atom),
    Class(Atom),
    LocalName(LocalName),
    Namespace(Namespace),
    AttrExists(AttrSelector),
    AttrEqual(AttrSelectorStringCaseSensitivity),
    AttrIncludes(AttrSelectorString),
    AttrDashMatch(AttrSelectorStringString),
    AttrPrefixMatch(AttrSelectorString),
    AttrSubstringMatch(AttrSelectorString),
    AttrSuffixMatch(AttrSelectorString),
    Negation(Vec<SimpleSelector<Impl>>),
    FirstChild,
    LastChild,
    OnlyChild,
    Root,
    Empty,
    NthChild(i32i32),
    NthLastChild(i32i32),
    NthOfType(i32i32),
    NthLastOfType(i32i32),
    FirstOfType,
    LastOfType,
    OnlyOfType,
    NonTSPseudoClass(Impl::NonTSPseudoClass),
}

Variants

ID(Atom)Class(Atom)LocalName(LocalName)Namespace(Namespace)AttrExists(AttrSelector)AttrEqual(AttrSelectorStringCaseSensitivity)AttrIncludes(AttrSelectorString)AttrDashMatch(AttrSelectorStringString)AttrPrefixMatch(AttrSelectorString)AttrSubstringMatch(AttrSelectorString)AttrSuffixMatch(AttrSelectorString)Negation(Vec<SimpleSelector<Impl>>)FirstChildLastChildOnlyChildRootEmptyNthChild(i32i32)NthLastChild(i32i32)NthOfType(i32i32)NthLastOfType(i32i32)FirstOfTypeLastOfTypeOnlyOfTypeNonTSPseudoClass(Impl::NonTSPseudoClass)

Trait Implementations

impl<Impl: Debug + SelectorImpl> Debug for SimpleSelector<Impl> where Impl::NonTSPseudoClass: Debug
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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 !=.

impl<Impl: Eq + SelectorImpl> Eq for SimpleSelector<Impl> where Impl::NonTSPseudoClass: Eq
[src]