#[non_exhaustive]pub enum NamedColor {
Show 16 variants
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
LightBlack,
Gray,
LightRed,
LightGreen,
LightYellow,
LightBlue,
LightMagenta,
LightCyan,
}Expand description
Standard named terminal colors, including the eight bright/light variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
LightBlack
Bright black (ANSI 90). Alias: Gray.
Gray
Same as LightBlack (ANSI 90).
LightRed
LightGreen
LightYellow
LightBlue
LightMagenta
LightCyan
Trait Implementations§
Source§impl Clone for NamedColor
impl Clone for NamedColor
Source§fn clone(&self) -> NamedColor
fn clone(&self) -> NamedColor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamedColor
impl Debug for NamedColor
Source§impl Hash for NamedColor
impl Hash for NamedColor
Source§impl PartialEq for NamedColor
impl PartialEq for NamedColor
impl Copy for NamedColor
impl Eq for NamedColor
impl StructuralPartialEq for NamedColor
Auto Trait Implementations§
impl Freeze for NamedColor
impl RefUnwindSafe for NamedColor
impl Send for NamedColor
impl Sync for NamedColor
impl Unpin for NamedColor
impl UnsafeUnpin for NamedColor
impl UnwindSafe for NamedColor
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