#[non_exhaustive]pub enum Style {
Cyan,
Green,
Magenta,
Red,
Yellow,
CyanBold,
GreenBold,
MagentaBold,
RedBold,
YellowBold,
Underline,
UnderlineBold,
}Expand description
All supported styles 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
Underline
Underlined text; alias: u
UnderlineBold
Underlined bold text; alias: U
Implementations§
Source§impl Style
impl Style
pub const c: Style = Style::Cyan
pub const g: Style = Style::Green
pub const m: Style = Style::Magenta
pub const r: Style = Style::Red
pub const y: Style = Style::Yellow
pub const u: Style = Style::Underline
pub const C: Style = Style::CyanBold
pub const G: Style = Style::GreenBold
pub const M: Style = Style::MagentaBold
pub const R: Style = Style::RedBold
pub const Y: Style = Style::YellowBold
pub const U: Style = Style::UnderlineBold
Trait Implementations§
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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