Struct css::selectors::parser::SelectorList [] [src]

pub struct SelectorList<Impl: SelectorImpl>(pub SmallVec<[Selector<Impl>; 1]>);

Methods

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

[src]

Parse a comma-separated list of Selectors. https://drafts.csswg.org/selectors/#grouping

Return the Selectors or Err if there is an invalid selector.

[src]

Creates a SelectorList from a Vec of selectors. Used in tests.

Trait Implementations

impl<Impl: Clone + SelectorImpl> Clone for SelectorList<Impl>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Impl: Debug + SelectorImpl> Debug for SelectorList<Impl>
[src]

[src]

Formats the value using the given formatter.

impl<Impl: Eq + SelectorImpl> Eq for SelectorList<Impl>
[src]

impl<Impl: PartialEq + SelectorImpl> PartialEq for SelectorList<Impl>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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