pub enum Color {
}Expand description
A terminal color.
Variantsยง
Default
Default terminal color.
Black
Black (ANSI 0).
Red
Red (ANSI 1).
Green
Green (ANSI 2).
Yellow
Yellow (ANSI 3).
Blue
Blue (ANSI 4).
Magenta
Magenta (ANSI 5).
Cyan
Cyan (ANSI 6).
White
White (ANSI 7).
BrightBlack
Bright black (ANSI 8).
BrightRed
Bright red (ANSI 9).
BrightGreen
Bright green (ANSI 10).
BrightYellow
Bright yellow (ANSI 11).
BrightBlue
Bright blue (ANSI 12).
BrightMagenta
Bright magenta (ANSI 13).
BrightCyan
Bright cyan (ANSI 14).
BrightWhite
Bright white (ANSI 15).
Ansi256(u8)
256-color palette (0-255).
Rgb
True color RGB.
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 UnwindSafe for Color
Blanket Implementationsยง
ยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
ยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
ยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงunsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit)