pub enum ButtonVariant {
Primary,
Secondary,
Outline,
Ghost,
Destructive,
}Expand description
How much a button weighs on its page.
Variants§
Primary
The page’s one main action, in the primary color.
Secondary
A filled, quiet action.
Outline
A bordered action on the control surface: the page’s other actions.
Ghost
No surface until hovered: toolbar and row actions.
Destructive
An action that deletes or cannot be undone.
Trait Implementations§
Source§impl Clone for ButtonVariant
impl Clone for ButtonVariant
impl Copy for ButtonVariant
Source§impl Debug for ButtonVariant
impl Debug for ButtonVariant
Source§impl Default for ButtonVariant
impl Default for ButtonVariant
impl Eq 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.