Enum tanmatsu::util::Color [−][src]
pub enum Color {
}
Variants
DarkRed
DarkGreen
DarkYellow
DarkBlue
DarkMagenta
DarkCyan
Black
A terminal’s default background color.
Gray
A terminal’s default foreground color.
DarkGray
Red
Green
Yellow
Blue
Magenta
Cyan
White
Byte(u8)
Tuple Fields
0: u8
Rgb
Implementations
Tries to parse the input into an RGB color. It can parse the following RGB notations:
- 8-bit, e.g. (255, 0, 0)
- Hexadecimal, e.g. #FF0000
- Float, e.g. (1.0, 0.0, 0.0)
- Percentage, e.g. (100%, 0%, 0%)
See https://en.wikipedia.org/wiki/RGB_color_model for more information.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more