pub enum Color {
Show 17 variants
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
BrightBlack,
BrightRed,
BrightGreen,
BrightYellow,
BrightBlue,
BrightMagenta,
BrightCyan,
BrightWhite,
Reset,
}Expand description
Terminal colors for styled output.
These colors correspond to standard ANSI terminal colors.
Variants§
Black
Black (ANSI code 30/40)
Red
Red (ANSI code 31/41)
Green
Green (ANSI code 32/42)
Yellow
Yellow (ANSI code 33/43)
Blue
Blue (ANSI code 34/44)
Magenta
Magenta (ANSI code 35/45)
Cyan
Cyan (ANSI code 36/46)
White
White (ANSI code 37/47)
BrightBlack
Bright Black (ANSI code 90/100)
BrightRed
Bright Red (ANSI code 91/101)
BrightGreen
Bright Green (ANSI code 92/102)
BrightYellow
Bright Yellow (ANSI code 93/103)
BrightBlue
Bright Blue (ANSI code 94/104)
BrightMagenta
Bright Magenta (ANSI code 95/105)
BrightCyan
Bright Cyan (ANSI code 96/106)
BrightWhite
Bright White (ANSI code 97/107)
Reset
Reset color to default
Implementations§
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