#[non_exhaustive]pub enum ButtonVariant {
Default,
Destructive,
Outline,
Secondary,
Ghost,
Link,
}Expand description
The look of a button.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
Filled with token::primary, for the main action.
Destructive
Filled with token::destructive, for an action that deletes.
Outline
A border on the background.
Secondary
Filled with token::secondary.
Ghost
No fill until the pointer is over it.
Link
Underlined text.
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
impl Eq for ButtonVariant
Source§impl Hash for ButtonVariant
impl Hash for ButtonVariant
Source§impl PartialEq for ButtonVariant
impl PartialEq for ButtonVariant
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