pub enum Color {
}Expand description
A terminal color.
Variant names follow ratatui: the plain names map to the eight standard
ANSI colors, the Light* names to their bright variants.
Variants§
Reset
Reset to the terminal’s default color.
Black
Standard black.
Red
Standard red.
Green
Standard green.
Yellow
Standard yellow.
Blue
Standard blue.
Magenta
Standard magenta.
Cyan
Standard cyan.
Gray
Light gray (standard white).
DarkGray
Dark gray (bright black).
LightRed
Bright red.
LightGreen
Bright green.
LightYellow
Bright yellow.
LightBlue
Bright blue.
LightMagenta
Bright magenta.
LightCyan
Bright cyan.
White
Bright white.
Rgb(u8, u8, u8)
A 24-bit truecolor value.
Indexed(u8)
An index into the 256-color palette.
Implementations§
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