pub struct CellStyle {
pub bold: bool,
pub faint: bool,
pub italic: bool,
pub underline: bool,
pub reverse: bool,
pub fg_color: Option<String>,
pub bg_color: Option<String>,
pub hyperlink: Option<ActiveHyperlink>,
pub prefix: String,
}Expand description
Normalized style state for a single terminal cell.
Fields§
§bold: boolBold (SGR 1) is active.
faint: boolFaint / dim (SGR 2) is active.
italic: boolItalic (SGR 3) is active.
underline: boolUnderline (SGR 4) is active.
reverse: boolReverse video (SGR 7) is active.
fg_color: Option<String>Active foreground color SGR parameter.
bg_color: Option<String>Active background color SGR parameter.
hyperlink: Option<ActiveHyperlink>Active OSC 8 hyperlink, if any.
prefix: StringUnrecognized ANSI sequences that should be emitted verbatim before this cell’s symbol.
Trait Implementations§
impl StructuralPartialEq for CellStyle
Auto Trait Implementations§
impl Freeze for CellStyle
impl RefUnwindSafe for CellStyle
impl Send for CellStyle
impl Sync for CellStyle
impl Unpin for CellStyle
impl UnsafeUnpin for CellStyle
impl UnwindSafe for CellStyle
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