pub enum Color {
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
Fixed(u8),
RGB(u8, u8, u8),
}
Expand description
A Color
can be one of the pre-defined ANSI colors (Red
, Green
, ..),
a 8-bit ANSI color (Fixed(u8)
) or a 24-bit color (RGB(u8, u8, u8)
).
Variants
Implementations
sourceimpl Color
impl Color
sourcepub fn to_ansi_term_color(&self) -> Color
pub fn to_ansi_term_color(&self) -> Color
Convert to a ansi_term::Color
(if the ansi_term
feature is enabled).
Trait Implementations
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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