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 moreimpl Copy for ButtonRole
Source§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
impl Eq for ButtonRole
Source§impl PartialEq for ButtonRole
impl PartialEq 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