pub enum DefaultColor {
Show 16 variants
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
Gray,
BrightRed,
BrightGreen,
BrightYellow,
BrightBlue,
BrightMagenta,
BrightCyan,
BrightWhite,
}Expand description
Default for Colors.
By default they will convert into 8 Bit Color
If you would like them to auto convert into 4 bit color. Enable the feature default_four_bit
Variants§
Black
0 on 8 bit color
Red
0 on 8 bit color
Green
1 on 8 bit color
Yellow
2 on 8 bit color
Blue
3 on 8 bit color
Magenta
4 on 8 bit color
Cyan
5 on 8 bit color
White
6 on 8 bit color
Gray
7 on 8 bit color
BrightRed
8 on 8 bit color
BrightGreen
9 on 8 bit color
BrightYellow
10 on 8 bit color
BrightBlue
11 on 8 bit color
BrightMagenta
12 on 8 bit color
BrightCyan
13 on 8 bit color
BrightWhite
14 on 8 bit color
Trait Implementations§
Source§impl From<DefaultColor> for Color
impl From<DefaultColor> for Color
Source§fn from(value: DefaultColor) -> Self
fn from(value: DefaultColor) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DefaultColor
impl RefUnwindSafe for DefaultColor
impl Send for DefaultColor
impl Sync for DefaultColor
impl Unpin for DefaultColor
impl UnwindSafe for DefaultColor
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