pub struct Style {
pub fg_color: StyleColor,
pub bg_color: StyleColor,
pub underline_color: StyleColor,
pub bold: bool,
pub italic: bool,
pub faint: bool,
pub blink: bool,
pub inverse: bool,
pub invisible: bool,
pub strikethrough: bool,
pub overline: bool,
pub underline: Underline,
}Expand description
Terminal cell style attributes.
A style describes the visual attributes of a terminal cell, including foreground, background, and underline colors, as well as flags for bold, italic, underline, and other text decorations.
Fields§
§fg_color: StyleColor§bg_color: StyleColor§underline_color: StyleColor§bold: bool§italic: bool§faint: bool§blink: bool§inverse: bool§invisible: bool§strikethrough: bool§overline: bool§underline: UnderlineImplementations§
Trait Implementations§
Source§impl From<Style> for GhosttyStyle
impl From<Style> for GhosttyStyle
Source§impl TryFrom<GhosttyStyle> for Style
impl TryFrom<GhosttyStyle> for Style
impl Copy for Style
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 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