pub struct Style {
pub fg: Option<Color>,
pub bg: Option<Color>,
pub bold: bool,
pub underline: bool,
pub italic: bool,
pub strikethrough: bool,
}Expand description
Visual attributes for a single character cell.
Fields§
§fg: Option<Color>Optional foreground color applied to rendered cells.
bg: Option<Color>Optional background color applied to rendered cells.
bold: boolWhether cells should be emitted with bold text.
underline: boolWhether cells should be emitted with underline.
italic: boolWhether cells should be emitted with italic text.
strikethrough: boolWhether cells should be emitted with strikethrough text.
Implementations§
Trait Implementations§
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