#[repr(i8)]pub enum Color {
Show 17 variants
Black = 0,
Blue = 1,
Green = 2,
Cyan = 3,
Red = 4,
Pink = 5,
Yellow = 6,
White = 7,
LightBlack = 8,
LightBlue = 9,
LightGreen = 10,
LightCyan = 11,
LightRed = 12,
LightPink = 13,
LightYellow = 14,
LightWhite = 15,
Default = -1,
}
Expand description
4-bit ANSI Color definitions for the native console lib bindings.
Variants§
Black = 0
Blue = 1
Green = 2
Cyan = 3
Red = 4
Pink = 5
Yellow = 6
White = 7
LightBlack = 8
LightBlue = 9
LightGreen = 10
LightCyan = 11
LightRed = 12
LightPink = 13
LightYellow = 14
LightWhite = 15
Default = -1
Default color is Color::Black on unix and default color attributes on Windows.
Trait Implementations§
Source§impl Ord for Color
impl Ord for Color
Source§impl PartialOrd for Color
impl PartialOrd for Color
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 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