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
complex_selector: Arc<ComplexSelector<Impl>>
pseudo_element: Option<Impl::PseudoElement>
specificity: u32
Methods
impl<Impl: SelectorImpl> Selector<Impl>
[src]
fn affects_siblings(&self) -> bool
Whether this selector, if matching on a set of siblings, could affect other sibling's style.
fn matches_non_common_style_affecting_attribute(&self) -> bool
Trait Implementations
impl<Impl: PartialEq + SelectorImpl> PartialEq for Selector<Impl> where Impl::PseudoElement: PartialEq
[src]
fn eq(&self, __arg_0: &Selector<Impl>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Selector<Impl>) -> bool
This method tests for !=
.
impl<Impl: Clone + SelectorImpl> Clone for Selector<Impl> where Impl::PseudoElement: Clone
[src]
fn clone(&self) -> Selector<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: SelectorImpl> Debug for Selector<Impl>
[src]
impl<Impl: SelectorImpl> ToCss for Selector<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