#[non_exhaustive]pub enum InteractionKind {
Hover,
Focus,
FocusVisible,
Active,
}Expand description
Which interaction state changed. Fired by Dom::set_hovered /
Dom::set_focused / Dom::set_focus_visible / Dom::set_active
so pseudo-class matches (:hover, :focus, :focus-within,
:focus-visible, :active) can invalidate cleanly. :hover,
:focus-within and :active also match every ancestor of the
element named, so their prev / next stand for those chains.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hover
Focus
FocusVisible
Dom::focus_visible flipped while focus stayed put; prev and
next both name the focused element (None when nothing is
focused).
Active
The element being activated changed (Dom::set_active,
:active).
Trait Implementations§
Source§impl Clone for InteractionKind
impl Clone for InteractionKind
impl Copy for InteractionKind
Source§impl Debug for InteractionKind
impl Debug for InteractionKind
impl Eq for InteractionKind
Source§impl Hash for InteractionKind
impl Hash for InteractionKind
Source§impl PartialEq for InteractionKind
impl PartialEq for InteractionKind
impl StructuralPartialEq for InteractionKind
Auto Trait Implementations§
impl Freeze for InteractionKind
impl RefUnwindSafe for InteractionKind
impl Send for InteractionKind
impl Sync for InteractionKind
impl Unpin for InteractionKind
impl UnsafeUnpin for InteractionKind
impl UnwindSafe for InteractionKind
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