#[non_exhaustive]pub enum BadgeVariant {
Default,
Secondary,
Destructive,
Outline,
}Expand description
The look of a badge.
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.
Secondary
Filled with token::secondary.
Destructive
Filled with token::destructive.
Outline
A border with no fill.
Trait Implementations§
Source§impl Clone for BadgeVariant
impl Clone for BadgeVariant
Source§fn clone(&self) -> BadgeVariant
fn clone(&self) -> BadgeVariant
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 BadgeVariant
Source§impl Debug for BadgeVariant
impl Debug for BadgeVariant
impl Eq for BadgeVariant
Source§impl Hash for BadgeVariant
impl Hash for BadgeVariant
Source§impl PartialEq for BadgeVariant
impl PartialEq for BadgeVariant
impl StructuralPartialEq for BadgeVariant
Auto Trait Implementations§
impl Freeze for BadgeVariant
impl RefUnwindSafe for BadgeVariant
impl Send for BadgeVariant
impl Sync for BadgeVariant
impl Unpin for BadgeVariant
impl UnsafeUnpin for BadgeVariant
impl UnwindSafe for BadgeVariant
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