pub trait NonTSPseudoClass: Sized + ToCss {
    type Impl: SelectorImpl;
    // Required methods
    fn is_active_or_hover(&self) -> bool;
    fn is_user_action_state(&self) -> bool;
    fn has_zero_specificity(&self) -> bool;
}Expand description
A trait that represents a pseudo-class.
Required Associated Types§
sourcetype Impl: SelectorImpl
 
type Impl: SelectorImpl
The SelectorImpl this pseudo-element is used for.
Required Methods§
sourcefn is_active_or_hover(&self) -> bool
 
fn is_active_or_hover(&self) -> bool
Whether this pseudo-class is :active or :hover.
sourcefn is_user_action_state(&self) -> bool
 
fn is_user_action_state(&self) -> bool
Whether this pseudo-class belongs to:
https://drafts.csswg.org/selectors-4/#useraction-pseudos
sourcefn has_zero_specificity(&self) -> bool
 
fn has_zero_specificity(&self) -> bool
Whether this pseudo-class has zero specificity.
Object Safety§
This trait is not object safe.