pub struct Badge<'a> {
pub label: &'a str,
pub tone: BadgeTone,
}Expand description
Pill badge (<span class="badge ...">).
Fields§
§label: &'a str§tone: BadgeToneImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Badge<'a>
impl<'a> Freeze for Badge<'a>
impl<'a> Move for Badge<'a>
impl<'a> RefUnwindSafe for Badge<'a>
impl<'a> Send for Badge<'a>
impl<'a> Sync for Badge<'a>
impl<'a> Unpin for Badge<'a>
impl<'a> UnsafeUnpin for Badge<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for Badge<'a>where
&'a str: UnwindSafe,
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