Trait parcel_selectors::parser::NonTSPseudoClass

source ·
pub trait NonTSPseudoClass<'i>: Sized + ToCss {
    type Impl: SelectorImpl<'i>;

    // Required methods
    fn is_active_or_hover(&self) -> bool;
    fn is_user_action_state(&self) -> bool;

    // Provided methods
    fn is_valid_before_webkit_scrollbar(&self) -> bool { ... }
    fn is_valid_after_webkit_scrollbar(&self) -> bool { ... }
    fn visit<V>(&self, _visitor: &mut V) -> bool
       where V: SelectorVisitor<'i, Impl = Self::Impl> { ... }
}
Expand description

A trait that represents a pseudo-class.

Required Associated Types§

source

type Impl: SelectorImpl<'i>

The SelectorImpl this pseudo-element is used for.

Required Methods§

source

fn is_active_or_hover(&self) -> bool

Whether this pseudo-class is :active or :hover.

source

fn is_user_action_state(&self) -> bool

Whether this pseudo-class belongs to:

https://drafts.csswg.org/selectors-4/#useraction-pseudos

Provided Methods§

source

fn is_valid_before_webkit_scrollbar(&self) -> bool

source

fn is_valid_after_webkit_scrollbar(&self) -> bool

source

fn visit<V>(&self, _visitor: &mut V) -> bool
where V: SelectorVisitor<'i, Impl = Self::Impl>,

Object Safety§

This trait is not object safe.

Implementors§