pub enum Color {
Black,
Red,
DarkRed,
Green,
DarkGreen,
Yellow,
DarkYellow,
Blue,
DarkBlue,
Magenta,
DarkMagenta,
Cyan,
DarkCyan,
Grey,
White,
Rgb {
r: u8,
g: u8,
b: u8,
},
AnsiValue(u8),
}
Colors that are available for coloring the terminal font.
Color representing RGB-colors;
r = red
g = green
b = blue
Fields of Rgb
Performs copy-assignment from source
. Read more
Get an color from an &str like Color::from("blue")
.
Get an color from an &str like Color::from(String::from(blue))
.
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Convert a string to an Color value
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static