pub trait PseudoElement: Sized + ToCss {
type Impl: SelectorImpl;
// Provided methods
fn accepts_state_pseudo_classes(&self) -> bool { ... }
fn valid_after_slotted(&self) -> bool { ... }
}
Expand description
A trait that represents a pseudo-element.
Required Associated Types§
Sourcetype Impl: SelectorImpl
type Impl: SelectorImpl
The SelectorImpl
this pseudo-element is used for.
Provided Methods§
Sourcefn accepts_state_pseudo_classes(&self) -> bool
fn accepts_state_pseudo_classes(&self) -> bool
Whether the pseudo-element supports a given state selector to the right of it.
Sourcefn valid_after_slotted(&self) -> bool
fn valid_after_slotted(&self) -> bool
Whether this pseudo-element is valid after a ::slotted(..) pseudo.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.