pub enum ButtonKind {
Primary,
Secondary,
Ghost,
Danger,
}Expand description
Button emphasis.
Variants§
Primary
Accent fill for the main action.
Secondary
Raised neutral fill.
Ghost
Text-only until hovered.
Danger
Destructive action.
Trait Implementations§
Source§impl Clone for ButtonKind
impl Clone for ButtonKind
Source§fn clone(&self) -> ButtonKind
fn clone(&self) -> ButtonKind
Returns a duplicate of the value. Read more
1.0.0 · 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 ButtonKind
impl Debug for ButtonKind
Source§impl Default for ButtonKind
impl Default for ButtonKind
Source§fn default() -> ButtonKind
fn default() -> ButtonKind
Returns the “default value” for a type. Read more
Source§impl Hash for ButtonKind
impl Hash for ButtonKind
Source§impl PartialEq for ButtonKind
impl PartialEq for ButtonKind
impl Copy for ButtonKind
impl Eq for ButtonKind
impl StructuralPartialEq for ButtonKind
Auto Trait Implementations§
impl Freeze for ButtonKind
impl RefUnwindSafe for ButtonKind
impl Send for ButtonKind
impl Sync for ButtonKind
impl Unpin for ButtonKind
impl UnwindSafe for ButtonKind
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