pub struct Style {
pub fg: Option<Color>,
pub bg: Option<Color>,
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub dim: bool,
pub strikethrough: bool,
pub reverse: bool,
}Expand description
Text style for spans
Fields§
§fg: Option<Color>Foreground color
bg: Option<Color>Background color
bold: boolBold text
italic: boolItalic text
underline: boolUnderlined text
dim: boolDim text
strikethrough: boolStrikethrough text
reverse: boolReverse video (swap fg/bg)
Implementations§
Source§impl Style
impl Style
Sourcepub fn strikethrough(self) -> Self
pub fn strikethrough(self) -> Self
Set strikethrough
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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