pub enum ButtonVariant {
Default,
Destructive,
Outline,
Secondary,
Ghost,
Link,
}Expand description
Visual variant of the button.
Variants§
Default
Primary action button.
Destructive
Destructive / danger action.
Outline
Outline / bordered button.
Secondary
Secondary / muted button.
Ghost
Ghost / transparent button.
Link
Link-styled button.
Trait Implementations§
Source§impl Clone for ButtonVariant
impl Clone for ButtonVariant
Source§fn clone(&self) -> ButtonVariant
fn clone(&self) -> ButtonVariant
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 ButtonVariant
Source§impl Debug for ButtonVariant
impl Debug for ButtonVariant
Source§impl Default for ButtonVariant
impl Default for ButtonVariant
Source§fn default() -> ButtonVariant
fn default() -> ButtonVariant
Returns the “default value” for a type. Read more
impl Eq for ButtonVariant
Source§impl PartialEq for ButtonVariant
impl PartialEq for ButtonVariant
Source§fn eq(&self, other: &ButtonVariant) -> bool
fn eq(&self, other: &ButtonVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ButtonVariant
Auto Trait Implementations§
impl Freeze for ButtonVariant
impl RefUnwindSafe for ButtonVariant
impl Send for ButtonVariant
impl Sync for ButtonVariant
impl Unpin for ButtonVariant
impl UnsafeUnpin for ButtonVariant
impl UnwindSafe for ButtonVariant
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