pub struct Style {
pub fg: Option<Color>,
pub bg: Option<Color>,
pub modifiers: Vec<Modifier>,
pub underline: Option<Underline>,
}Expand description
Optional colors, font modifiers, and underline settings.
Fields§
§fg: Option<Color>Foreground color, if explicitly set.
bg: Option<Color>Background color, if explicitly set.
modifiers: Vec<Modifier>Font and visibility modifiers. An empty list resets inherited modifiers.
underline: Option<Underline>Underline settings, if explicitly set.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Style
impl Freeze for Style
impl Move for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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