pub enum Color {
Show 17 variants
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
BrightBlack,
BrightRed,
BrightGreen,
BrightYellow,
BrightBlue,
BrightMagenta,
BrightCyan,
BrightWhite,
ANSI(u8),
}
Expand description
Represents all colors the text/background can be.
Variants§
Black
Black color.
Red
Red color.
Green
Green color.
Yellow
Yellow color.
Blue
Blue color.
Magenta
Magenta color.
Cyan
Cyan color.
White
White color.
BrightBlack
Bright Black color.
BrightRed
Bright Red color.
BrightGreen
Bright Green color.
BrightYellow
Bright Yellow color.
BrightBlue
Bright Blue color.
BrightMagenta
Bright Magenta color.
BrightCyan
Bright Cyan color.
BrightWhite
Bright White color.
ANSI(u8)
An ANSI color of your choice.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin 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