pub enum Color {
}Expand description
Represents a color.
Variants
Default
The default teminal color.
LightWhite
The standard white color.
LightBlack
The standard black color.
LightBlue
The standard blue color.
LightCyan
The standard cyan color.
LightGreen
The standard green color.
LightMagenta
The standard magenta color.
LightRed
The standard red color.
LightYellow
The standard yellow color.
LightGrey
The standard grey color.
DarkWhite
The dimmed white color.
DarkBlack
The dimmed black color.
DarkBlue
The dimmed blue color.
DarkCyan
The dimmed cyan color.
DarkGreen
The dimmed green color.
DarkMagenta
The dimmed magenta color.
DarkRed
The dimmed red color.
DarkYellow
The dimmed yellow color.
DarkGrey
The dimmed grey color.
Index(u8)
An ANSI indexed color.
Rgb
Fields
red: u8The red amount of the triple.
green: u8The green amount of the triple.
blue: u8The blue amount of the triple.
A RGB color triple.
Trait Implementations
impl Copy for Color
impl StructuralPartialEq for Color
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more