pub enum ButtonRole {
Default,
Cancel,
Destructive,
}Expand description
A dialog button’s semantic role: styling + default/cancel placement on each toolkit.
Variants§
Trait Implementations§
Source§impl Clone for ButtonRole
impl Clone for ButtonRole
Source§fn clone(&self) -> ButtonRole
fn clone(&self) -> ButtonRole
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 ButtonRole
impl Debug for ButtonRole
Source§impl Default for ButtonRole
impl Default for ButtonRole
Source§fn default() -> ButtonRole
fn default() -> ButtonRole
Returns the “default value” for a type. Read more
Source§impl PartialEq for ButtonRole
impl PartialEq for ButtonRole
Source§fn eq(&self, other: &ButtonRole) -> bool
fn eq(&self, other: &ButtonRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ButtonRole
impl Eq for ButtonRole
impl StructuralPartialEq for ButtonRole
Auto Trait Implementations§
impl Freeze for ButtonRole
impl RefUnwindSafe for ButtonRole
impl Send for ButtonRole
impl Sync for ButtonRole
impl Unpin for ButtonRole
impl UnsafeUnpin for ButtonRole
impl UnwindSafe for ButtonRole
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