pub enum Color {
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
Rgb(u8, u8, u8),
}Expand description
An ANSI color that a tree can be styled with.
Variants§
Black
ANSI color #0. Exact color depends on terminal.
Red
ANSI color #1. Exact color depends on terminal.
Green
ANSI color #2. Exact color depends on terminal.
Yellow
ANSI color #3. Exact color depends on terminal.
Blue
ANSI color #4. Exact color depends on terminal.
Magenta
ANSI color #5. Exact color depends on terminal.
Cyan
ANSI color #6. Exact color depends on terminal.
White
ANSI color #7. Exact color depends on terminal.
Rgb(u8, u8, u8)
A color with custom RGB values.
Note: Truecolor support is required for this variant. Color::Rgb
will not work properly if Truecolor is not supported in your terminal.
In some cases it may be rendered as an 8-bit color if your terminal
supports 256 colors.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin 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