Enum color_ansi::AnsiColor
source · pub enum AnsiColor {
Black,
Blue,
Green,
Red,
Cyan,
Magenta,
Yellow,
White,
Ansi256(u8),
Rgb(u8, u8, u8),
}
Expand description
The definition of the ANSI colors.
Variants§
Black
The ansi black color, escape code 0;30
.
Blue
The ansi blue color, escape code 0;34
.
Green
The ansi green color, escape code 0;32
.
Red
The ansi cyan color, escape code 0;36
.
Cyan
The ansi red color, escape code 0;31
.
Magenta
The ansi magenta color, escape code 0;35
.
Yellow
The ansi yellow color, escape code 0;33
.
White
The ansi white color, escape code 0;37
.
Ansi256(u8)
An ANSI color with a value in the range [0, 255]
.
Rgb(u8, u8, u8)
An ANSI color with a value in the range [0, 255]
.
Trait Implementations§
source§impl PartialEq<AnsiColor> for AnsiColor
impl PartialEq<AnsiColor> for AnsiColor
impl Copy for AnsiColor
impl Eq for AnsiColor
impl StructuralEq for AnsiColor
impl StructuralPartialEq for AnsiColor
Auto Trait Implementations§
impl RefUnwindSafe for AnsiColor
impl Send for AnsiColor
impl Sync for AnsiColor
impl Unpin for AnsiColor
impl UnwindSafe for AnsiColor
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