pub struct Paint {
pub fg: Option<Color>,
pub bold: bool,
pub dim: bool,
pub italic: bool,
pub underline: bool,
}Expand description
How to paint one kind of text: a color and attributes.
Fields§
§fg: Option<Color>The foreground color, if any.
bold: boolBold (or bright, on some terminals).
dim: boolDim.
italic: boolItalic.
underline: boolUnderlined.
Implementations§
Trait Implementations§
impl Copy for Paint
impl Eq for Paint
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnsafeUnpin for Paint
impl UnwindSafe for Paint
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