pub struct Badge<'a> { /* private fields */ }Expand description
A compact label with padding and style.
Implementations§
Source§impl<'a> Badge<'a>
impl<'a> Badge<'a>
Sourcepub fn with_style(self, style: Style) -> Self
pub fn with_style(self, style: Style) -> Self
Set the badge style (foreground/background/attrs).
Sourcepub fn with_padding(self, left: u16, right: u16) -> Self
pub fn with_padding(self, left: u16, right: u16) -> Self
Set the left/right padding in cells.
Trait Implementations§
impl<'a> Copy for Badge<'a>
impl<'a> Eq for Badge<'a>
impl<'a> StructuralPartialEq for Badge<'a>
Auto Trait Implementations§
impl<'a> Freeze 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>
impl<'a> UnwindSafe for Badge<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.