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

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

Variants

Trait Implementations

impl<Impl: Eq + SelectorImpl> Eq for SimpleSelector<Impl> where Impl::Identifier: Eq, Impl::ClassName: Eq, Impl::AttrValue: Eq, Impl::NonTSPseudoClass: Eq
[src]

impl<Impl: PartialEq + SelectorImpl> PartialEq for SimpleSelector<Impl> where Impl::Identifier: PartialEq, Impl::ClassName: PartialEq, Impl::AttrValue: PartialEq, Impl::NonTSPseudoClass: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<Impl: Clone + SelectorImpl> Clone for SimpleSelector<Impl> where Impl::Identifier: Clone, Impl::ClassName: Clone, Impl::AttrValue: Clone, Impl::NonTSPseudoClass: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Impl: Hash + SelectorImpl> Hash for SimpleSelector<Impl> where Impl::Identifier: Hash, Impl::ClassName: Hash, Impl::AttrValue: Hash, Impl::NonTSPseudoClass: Hash
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

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

Formats the value using the given formatter.

impl<Impl: SelectorImpl> ToCss for SimpleSelector<Impl>
[src]

Serialize self in CSS syntax, writing to dest.

Serialize self in CSS syntax and return a string. Read more

Serialize self in CSS syntax and return a result compatible with std::fmt::Show. Read more