pub enum ColorKind {
None,
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
Byte(u8),
Rgb(u8, u8, u8),
Default,
}Expand description
Component of SGRString; the type of color
Used for both foreground and background
Variants§
None
Does nothing
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
Byte(u8)
Rgb(u8, u8, u8)
Default
Applies the default SGR color
Trait Implementations§
source§impl PartialEq<ColorKind> for ColorKind
impl PartialEq<ColorKind> for ColorKind
impl Eq for ColorKind
impl StructuralEq for ColorKind
impl StructuralPartialEq for ColorKind
Auto Trait Implementations§
impl RefUnwindSafe for ColorKind
impl Send for ColorKind
impl Sync for ColorKind
impl Unpin for ColorKind
impl UnwindSafe for ColorKind
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