pub struct Style {
pub fg: Option<Color>,
pub bg: Option<Color>,
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub strikethrough: bool,
pub dim: bool,
pub reverse: bool,
pub link: Option<String>,
}Expand description
Style attributes for a piece of text.
Fields§
§fg: Option<Color>Foreground color.
bg: Option<Color>Background color.
bold: boolBold text.
italic: boolItalic text.
underline: boolUnderlined text.
strikethrough: boolStrikethrough text.
dim: boolDim/faint text.
reverse: boolReverse video.
link: Option<String>OSC 8 hyperlink URL.
Implementations§
Trait Implementations§
Source§impl From<&Style> for ContentStyle
impl From<&Style> for ContentStyle
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin 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