Struct rquery::CompoundSelector
[−]
[src]
pub struct CompoundSelector { pub scope: Scope, pub parts: Vec<Selector>, }
Represents a component of a parsed CSS selector is used to match a single element.
Fields
scope: Scope
The scope of the selector.
parts: Vec<Selector>
The individual parts that make up the compound selector.
Methods
impl CompoundSelector
[src]
fn parse(selector: &str) -> Result<Vec<CompoundSelector>, UnexpectedTokenError>
Parses the string and converts it to a list of CompoundSelector
s.
Trait Implementations
impl Clone for CompoundSelector
[src]
fn clone(&self) -> CompoundSelector
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