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>, ()>

Parses the string and converts it to a list of CompoundSelectors.