pub struct BadgeStyle {
pub fill: Style,
pub edge: Style,
}Expand description
What a badge of one tone is drawn in, when it is drawn filled.
Two styles and not one, because a filled badge is three spans: an edge, the
label, an edge. The label takes fill whole. An edge takes
the fill’s background with edge’s foreground over it, so
the half of the cell the glyph leaves empty is the badge’s own ground.
Fields§
§fill: StyleThe ground and the ink.
edge: StyleThe edge, as a foreground.
Trait Implementations§
Source§impl Clone for BadgeStyle
impl Clone for BadgeStyle
impl Copy for BadgeStyle
Source§impl Debug for BadgeStyle
impl Debug for BadgeStyle
Source§impl Default for BadgeStyle
impl Default for BadgeStyle
impl Eq for BadgeStyle
Source§impl PartialEq for BadgeStyle
impl PartialEq for BadgeStyle
impl StructuralPartialEq for BadgeStyle
Auto Trait Implementations§
impl Freeze for BadgeStyle
impl RefUnwindSafe for BadgeStyle
impl Send for BadgeStyle
impl Sync for BadgeStyle
impl Unpin for BadgeStyle
impl UnsafeUnpin for BadgeStyle
impl UnwindSafe for BadgeStyle
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more