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
Normal
Don't ignore any pseudo-element selectors.
ForStatelessPseudoElement
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]
fn clone(&self) -> MatchingMode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for MatchingMode
[src]
impl Debug for MatchingMode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more