#[non_exhaustive]pub enum Color {
Cyan,
Green,
Magenta,
Red,
Yellow,
CyanBold,
GreenBold,
MagentaBold,
RedBold,
YellowBold,
}
Expand description
All supported colors in the formatting machinery
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.
Cyan
Cyan text; alias: c
Green
Green text; alias: g
Magenta
Magenta text; alias: m
Red
Red text; alias: r
Yellow
Yellow text; alias: y
CyanBold
Cyan bold text; alias: C
GreenBold
Green bold text; alias: G
MagentaBold
Magenta bold text; alias: M
RedBold
Red bold text; alias: R
YellowBold
Yellow bold text; alias: Y
Implementations§
Source§impl Color
impl Color
pub const c: Color = Color::Cyan
pub const g: Color = Color::Green
pub const m: Color = Color::Magenta
pub const r: Color = Color::Red
pub const y: Color = Color::Yellow
pub const C: Color = Color::CyanBold
pub const G: Color = Color::GreenBold
pub const M: Color = Color::MagentaBold
pub const R: Color = Color::RedBold
pub const Y: Color = Color::YellowBold
Trait Implementations§
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