pub enum InteractionIntent {
Primary,
Secondary,
Destructive,
Confirm,
Cancel,
Navigate,
Disclose,
}Expand description
User-facing intent for an interaction.
Variants§
Implementations§
Source§impl InteractionIntent
impl InteractionIntent
pub fn is_committal(self) -> bool
Trait Implementations§
Source§impl Clone for InteractionIntent
impl Clone for InteractionIntent
Source§fn clone(&self) -> InteractionIntent
fn clone(&self) -> InteractionIntent
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 InteractionIntent
impl Debug for InteractionIntent
Source§impl Hash for InteractionIntent
impl Hash for InteractionIntent
Source§impl Ord for InteractionIntent
impl Ord for InteractionIntent
Source§fn cmp(&self, other: &InteractionIntent) -> Ordering
fn cmp(&self, other: &InteractionIntent) -> 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 InteractionIntent
impl PartialEq for InteractionIntent
Source§fn eq(&self, other: &InteractionIntent) -> bool
fn eq(&self, other: &InteractionIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InteractionIntent
impl PartialOrd for InteractionIntent
impl Copy for InteractionIntent
impl Eq for InteractionIntent
impl StructuralPartialEq for InteractionIntent
Auto Trait Implementations§
impl Freeze for InteractionIntent
impl RefUnwindSafe for InteractionIntent
impl Send for InteractionIntent
impl Sync for InteractionIntent
impl Unpin for InteractionIntent
impl UnsafeUnpin for InteractionIntent
impl UnwindSafe for InteractionIntent
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