Struct css::selectors::parser::SelectorList
[−]
[src]
pub struct SelectorList<Impl: SelectorImpl>(pub SmallVec<[Selector<Impl>; 1]>);
Methods
impl<Impl: SelectorImpl> SelectorList<Impl>
[src]
fn parse<'i, 't, P, E>(
parser: &P,
input: &mut CssParser<'i, 't>
) -> Result<Self, ParseError<'i, SelectorParseError<'i, E>>> where
P: Parser<'i, Impl = Impl, Error = E>,
[src]
parser: &P,
input: &mut CssParser<'i, 't>
) -> Result<Self, ParseError<'i, SelectorParseError<'i, E>>> where
P: Parser<'i, Impl = Impl, Error = E>,
Parse a comma-separated list of Selectors. https://drafts.csswg.org/selectors/#grouping
Return the Selectors or Err if there is an invalid selector.
fn from_vec(v: Vec<Selector<Impl>>) -> Self
[src]
Creates a SelectorList from a Vec of selectors. Used in tests.
Trait Implementations
impl<Impl: Clone + SelectorImpl> Clone for SelectorList<Impl>
[src]
fn clone(&self) -> SelectorList<Impl>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Impl: Debug + SelectorImpl> Debug for SelectorList<Impl>
[src]
impl<Impl: Eq + SelectorImpl> Eq for SelectorList<Impl>
[src]
impl<Impl: PartialEq + SelectorImpl> PartialEq for SelectorList<Impl>
[src]
fn eq(&self, __arg_0: &SelectorList<Impl>) -> bool
[src]
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
[src]
This method tests for !=
.