Enum termcolor::Color
[−]
[src]
pub enum Color { Black, Blue, Green, Red, Cyan, Magenta, Yellow, White, // some variants omitted }
The set of available English colors for the terminal foreground/background.
Note that this set may expand over time.
Variants
Black
Blue
Green
Red
Cyan
Magenta
Yellow
White
Trait Implementations
impl Clone for Color
[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Color
[src]
impl Eq for Color
[src]
impl PartialEq for Color
[src]
fn eq(&self, __arg_0: &Color) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl FromStr for Color
[src]
type Err = ParseColorError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Color, ParseColorError>
Parses a string s
to return a value of this type. Read more