Struct selectors::parser::Selector [] [src]

pub struct Selector<Impl: SelectorImpl> {
    pub complex_selector: Arc<ComplexSelector<Impl>>,
    pub pseudo_element: Option<Impl::PseudoElement>,
    pub specificity: u32,
}

Fields

Methods

impl<Impl: SelectorImpl> Selector<Impl>
[src]

Whether this selector, if matching on a set of siblings, could affect other sibling's style.

Trait Implementations

impl<Impl: PartialEq + SelectorImpl> PartialEq for Selector<Impl> where Impl::PseudoElement: 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 Selector<Impl> where Impl::PseudoElement: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

impl<Impl: SelectorImpl> ToCss for Selector<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