pub enum Color {
}Expand description
Variants§
Black
Standard black (ANSI 30 / 40).
Red
Standard red (ANSI 31 / 41).
Green
Standard green (ANSI 32 / 42).
Yellow
Standard yellow (ANSI 33 / 43).
Blue
Standard blue (ANSI 34 / 44).
Magenta
Standard magenta (ANSI 35 / 45).
Cyan
Standard cyan (ANSI 36 / 46).
White
Standard white (ANSI 37 / 47).
BrightBlack
Bright black / dark gray (ANSI 90 / 100).
BrightRed
Bright red (ANSI 91 / 101).
BrightGreen
Bright green (ANSI 92 / 102).
BrightYellow
Bright yellow (ANSI 93 / 103).
BrightBlue
Bright blue (ANSI 94 / 104).
BrightMagenta
Bright magenta (ANSI 95 / 105).
BrightCyan
Bright cyan (ANSI 96 / 106).
BrightWhite
Bright white (ANSI 97 / 107).
AnsiColor(u8)
One of the 256-color extended palette entries (\x1b[38;5;n).
TrueColor
A 24-bit truecolor value (\x1b[38;2;r;g;b).
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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