pub enum PseudoClass {
Show 17 variants
Hover,
Active,
Focus,
FocusVisible,
FocusWithin,
Enabled,
Disabled,
Checked,
Indeterminate,
ReadOnly,
ReadWrite,
Required,
Optional,
Valid,
Invalid,
PlaceholderShown,
CustomState(Atom),
}Expand description
A pseudo-class answered by Element::state or
Element::has_custom_state rather than by the shape of the tree.
Variants§
Hover
Active
Focus
FocusVisible
FocusWithin
Enabled
Disabled
Checked
Indeterminate
ReadOnly
ReadWrite
Required
Optional
Valid
Invalid
PlaceholderShown
CustomState(Atom)
:state(name), a state the toolkit defines itself.
Trait Implementations§
Source§impl Clone for PseudoClass
impl Clone for PseudoClass
Source§fn clone(&self) -> PseudoClass
fn clone(&self) -> PseudoClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PseudoClass
impl Debug for PseudoClass
impl Eq for PseudoClass
Source§impl Hash for PseudoClass
impl Hash for PseudoClass
Source§impl NonTSPseudoClass for PseudoClass
impl NonTSPseudoClass for PseudoClass
Source§type Impl = SelectorImpl
type Impl = SelectorImpl
The
SelectorImpl this pseudo-element is used for.Source§fn is_active_or_hover(&self) -> bool
fn is_active_or_hover(&self) -> bool
Whether this pseudo-class is :active or :hover.
Source§fn is_user_action_state(&self) -> bool
fn is_user_action_state(&self) -> bool
Whether this pseudo-class belongs to: Read more
fn visit<V>(&self, _visitor: &mut V) -> boolwhere
V: SelectorVisitor<Impl = Self::Impl>,
Source§impl PartialEq for PseudoClass
impl PartialEq for PseudoClass
Source§fn eq(&self, other: &PseudoClass) -> bool
fn eq(&self, other: &PseudoClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PseudoClass
Auto Trait Implementations§
impl Freeze for PseudoClass
impl RefUnwindSafe for PseudoClass
impl Send for PseudoClass
impl Sync for PseudoClass
impl Unpin for PseudoClass
impl UnsafeUnpin for PseudoClass
impl UnwindSafe for PseudoClass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more