pub enum Colour {
Show 16 variants
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
BrightBlack,
BrightRed,
BrightGreen,
BrightYellow,
BrightBlue,
BrightMagenta,
BrightCyan,
BrightWhite,
}Expand description
Default 8-bit colour palette.
Variants§
Black
Black.
Red
Red.
Green
Green.
Yellow
Yellow.
Blue
Blue.
Magenta
Magenta.
Cyan
Cyan.
White
White.
BrightBlack
Bright black.
BrightRed
Bright red.
BrightGreen
Bright green.
BrightYellow
Bright yellow.
BrightBlue
Bright blue.
BrightMagenta
Bright magenta.
BrightCyan
Bright cyan.
BrightWhite
Bright white.
Implementations§
Trait Implementations§
impl Copy for Colour
impl Eq for Colour
Source§impl Ord for Colour
impl Ord for Colour
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Colour
impl PartialOrd for Colour
impl StructuralPartialEq for Colour
Auto Trait Implementations§
impl Freeze for Colour
impl RefUnwindSafe for Colour
impl Send for Colour
impl Sync for Colour
impl Unpin for Colour
impl UnsafeUnpin for Colour
impl UnwindSafe for Colour
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