The set of available colors for the terminal foreground/background.
Rgb colors will only output the correct codes when
paired with the
Rgb color types are not supported when writing colors
on Windows using the console. If they are used on Windows, then they are
silently ignored and no colors will be emitted.
This set may expand over time.
This type has a
FromStr impl that can parse colors from their human
readable form. The format is as follows:
- Any of the explicitly listed colors in English. They are matched case insensitively.
- A single 8-bit integer, in either decimal or hexadecimal format.
- A triple of 8-bit integers separated by a comma, where each integer is in decimal or hexadecimal format.
Hexadecimal numbers are written with a
type Err = ParseColorError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Color, ParseColorError>[src]
impl StructuralEq for Color[src]
impl StructuralPartialEq for Color[src]
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.