Struct selectors::parser::SelectorList
[−]
[src]
pub struct SelectorList<Impl: SelectorImpl>(pub Vec<Selector<Impl>>);
Methods
impl<Impl: SelectorImpl> SelectorList<Impl>
[src]
fn parse<P>(parser: &P, input: &mut CssParser) -> Result<Self, ()> where P: Parser<Impl=Impl>
Parse a comma-separated list of Selectors. https://drafts.csswg.org/selectors/#grouping
Return the Selectors or Err if there is an invalid selector.
Trait Implementations
impl<Impl: PartialEq + SelectorImpl> PartialEq for SelectorList<Impl>
[src]
fn eq(&self, __arg_0: &SelectorList<Impl>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SelectorList<Impl>) -> bool
This method tests for !=
.
impl<Impl: Clone + SelectorImpl> Clone for SelectorList<Impl>
[src]
fn clone(&self) -> SelectorList<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: Debug + SelectorImpl> Debug for SelectorList<Impl>
[src]
impl<Impl: SelectorImpl> ToCss for SelectorList<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