pub struct CellAttributes {
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub blink: bool,
pub inverse: bool,
pub hidden: bool,
pub strikethrough: bool,
pub foreground: Option<Color>,
pub background: Option<Color>,
}Expand description
Text attributes for a cell.
Fields§
§bold: boolBold text.
italic: boolItalic text.
underline: boolUnderlined text.
blink: boolBlinking text.
inverse: boolInverse video.
Hidden text.
strikethrough: boolStrikethrough text.
foreground: Option<Color>Foreground color (ANSI color code or RGB).
background: Option<Color>Background color (ANSI color code or RGB).
Trait Implementations§
Source§impl Clone for CellAttributes
impl Clone for CellAttributes
Source§fn clone(&self) -> CellAttributes
fn clone(&self) -> CellAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CellAttributes
impl Debug for CellAttributes
Source§impl Default for CellAttributes
impl Default for CellAttributes
Source§fn default() -> CellAttributes
fn default() -> CellAttributes
Returns the “default value” for a type. Read more
Source§impl PartialEq for CellAttributes
impl PartialEq for CellAttributes
impl Copy for CellAttributes
impl Eq for CellAttributes
impl StructuralPartialEq for CellAttributes
Auto Trait Implementations§
impl Freeze for CellAttributes
impl RefUnwindSafe for CellAttributes
impl Send for CellAttributes
impl Sync for CellAttributes
impl Unpin for CellAttributes
impl UnwindSafe for CellAttributes
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