pub enum InteractionState {
Idle,
Hovered,
Focused,
Active,
Disabled,
Selected,
Loading,
Pressed,
Expanded,
Collapsed,
}Expand description
Common UI interaction states.
Variants§
Implementations§
Source§impl InteractionState
impl InteractionState
pub fn is_interactive(self) -> bool
pub fn is_disabled(self) -> bool
pub fn is_focus_visible_candidate(self) -> bool
Trait Implementations§
Source§impl Clone for InteractionState
impl Clone for InteractionState
Source§fn clone(&self) -> InteractionState
fn clone(&self) -> InteractionState
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 InteractionState
impl Debug for InteractionState
Source§impl Hash for InteractionState
impl Hash for InteractionState
Source§impl Ord for InteractionState
impl Ord for InteractionState
Source§fn cmp(&self, other: &InteractionState) -> Ordering
fn cmp(&self, other: &InteractionState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InteractionState
impl PartialEq for InteractionState
Source§fn eq(&self, other: &InteractionState) -> bool
fn eq(&self, other: &InteractionState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InteractionState
impl PartialOrd for InteractionState
impl Copy for InteractionState
impl Eq for InteractionState
impl StructuralPartialEq for InteractionState
Auto Trait Implementations§
impl Freeze for InteractionState
impl RefUnwindSafe for InteractionState
impl Send for InteractionState
impl Sync for InteractionState
impl Unpin for InteractionState
impl UnsafeUnpin for InteractionState
impl UnwindSafe for InteractionState
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