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<SimpleSelector<Impl>>),
    FirstChild,
    LastChild,
    OnlyChild,
    Root,
    Empty,
    NthChild(i32i32),
    NthLastChild(i32i32),
    NthOfType(i32i32),
    NthLastOfType(i32i32),
    FirstOfType,
    LastOfType,
    OnlyOfType,
    NonTSPseudoClass(Impl::NonTSPseudoClass),
}

Variants

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<SimpleSelector<Impl>>)FirstChildLastChildOnlyChildRootEmptyNthChild(i32i32)NthLastChild(i32i32)NthOfType(i32i32)NthLastOfType(i32i32)FirstOfTypeLastOfTypeOnlyOfTypeNonTSPseudoClass(Impl::NonTSPseudoClass)

Trait Implementations

impl<Impl: Hash + SelectorImpl> Hash for SimpleSelector<Impl> where Impl::Identifier: Hash, Impl::ClassName: Hash, Impl::AttrValue: Hash, 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::Identifier: Clone, Impl::ClassName: Clone, Impl::AttrValue: Clone, 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::Identifier: PartialEq, Impl::ClassName: PartialEq, Impl::AttrValue: PartialEq, 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::Identifier: Eq, Impl::ClassName: Eq, Impl::AttrValue: Eq, Impl::NonTSPseudoClass: Eq
[src]

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

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

Formats the value using the given formatter.

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

fn to_css<W>(&self, dest: &mut W) -> Result where W: Write

Serialize self in CSS syntax, writing to dest.

fn to_css_string(&self) -> String

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

fn fmt_to_css<W>(&self, dest: &mut W) -> Result<()Error> where W: Write

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