pub struct Badge { /* private fields */ }Expand description
Implementations§
Source§impl Badge
impl Badge
Sourcepub fn variant(self, variant: BadgeVariant) -> Self
pub fn variant(self, variant: BadgeVariant) -> Self
Set variant
Sourcepub fn shape(self, shape: BadgeShape) -> Self
pub fn shape(self, shape: BadgeShape) -> Self
Set shape
Trait Implementations§
Source§impl StyledView for Badge
impl StyledView for Badge
Source§fn remove_class(&mut self, class: &str)
fn remove_class(&mut self, class: &str)
Remove a CSS class
Source§fn toggle_class(&mut self, class: &str)
fn toggle_class(&mut self, class: &str)
Toggle a CSS class
Auto Trait Implementations§
impl Freeze for Badge
impl RefUnwindSafe for Badge
impl Send for Badge
impl Sync for Badge
impl Unpin for Badge
impl UnsafeUnpin for Badge
impl UnwindSafe for Badge
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