Struct scraper::selector::Selector [] [src]

pub struct Selector {
    pub selectors: Vec<Selector<Simple>>,
}

Wrapper around CSS selectors.

Represents a "selector group", i.e. a comma-separated list of selectors.

Fields

The CSS selectors.

Methods

impl Selector
[src]

Parses a CSS selector group.

No meaningful error can be returned here, due to a limitation of the selectors and cssparser crates.

Returns true if the element matches this selector.

Trait Implementations

impl Debug for Selector
[src]

Formats the value using the given formatter.

impl Clone for Selector
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Selector
[src]

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

This method tests for !=.