pub enum Color {
Black,
White,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
Custom(usize),
}
Expand description
The Colors that can be displayed in the console
Variants§
Black
White
Red
Green
Yellow
Blue
Magenta
Cyan
Custom(usize)
This allows for custom ANSI Colors to be specified, the specified Color Code will not be valided and the User of this API needs to make sure that its a valid code
Trait Implementations§
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