pub enum Color {
Rgb(u8, u8, u8),
Indexed(u8),
Named(NamedColor),
}Variants§
Rgb(u8, u8, u8)
A literal color. The backend quantizes it down to 256/16 when the terminal cannot represent it.
Indexed(u8)
An index into the 256-color palette.
Named(NamedColor)
One of the 16 ANSI names. The terminal picks the actual shade, so this respects the user’s own theme — which is why it is the preferred default.
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 UnsafeUnpin 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