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]
impl Clone for MatchingMode
[src]fn clone(&self) -> MatchingMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MatchingMode
[src]
impl Copy for MatchingMode
[src]impl PartialEq<MatchingMode> for MatchingMode
[src]
impl PartialEq<MatchingMode> for MatchingMode
[src]impl StructuralPartialEq for MatchingMode
[src]
impl StructuralPartialEq for MatchingMode
[src]Auto Trait Implementations
impl RefUnwindSafe for MatchingMode
impl RefUnwindSafe for MatchingMode
impl Send for MatchingMode
impl Send for MatchingMode
impl Sync for MatchingMode
impl Sync for MatchingMode
impl Unpin for MatchingMode
impl Unpin for MatchingMode
impl UnwindSafe for MatchingMode
impl UnwindSafe for MatchingMode