pub enum Color {
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
}
Variants
Implementations
sourceimpl Color
impl Color
sourcepub fn get_fg_str(&self) -> &str
pub fn get_fg_str(&self) -> &str
Get ANSI foreground color str.
sourcepub fn get_bg_str(&self) -> &str
pub fn get_bg_str(&self) -> &str
Get ANSI background color str.
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