Enum selectors::context::MatchingMode[][src]

pub enum MatchingMode {
    Normal,
    ForStatelessPseudoElement,
}

What kind of selector matching mode we should use.

There are two modes of selector matching. The difference is only noticeable in presence of pseudo-elements.

Variants

Don't ignore any pseudo-element selectors.

Ignores any stateless pseudo-element selectors in the rightmost sequence of simple selectors.

This is useful, for example, to match against ::before when you aren't a pseudo-element yourself.

For example, in presence of ::before:hover, it would never match, but ::before would be ignored as in "matching".

It's required for all the selectors you match using this mode to have a pseudo-element.

Trait Implementations

impl Clone for MatchingMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for MatchingMode
[src]

impl Debug for MatchingMode
[src]

Formats the value using the given formatter. Read more

impl PartialEq for MatchingMode
[src]

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

This method tests for !=.

Auto Trait Implementations