Enum colored::Color [−][src]
pub enum Color {
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
BrightBlack,
BrightRed,
BrightGreen,
BrightYellow,
BrightBlue,
BrightMagenta,
BrightCyan,
BrightWhite,
}The 8 standard colors.
Variants
BlackRedGreenYellowBlueMagentaCyanWhiteBrightBlackBrightRedBrightGreenBrightYellowBrightBlueBrightMagentaBrightCyanBrightWhite
Methods
impl Color[src]
impl ColorTrait Implementations
impl Clone for Color[src]
impl Clone for Colorfn clone(&self) -> Color[src]
fn clone(&self) -> ColorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Color[src]
impl Copy for Colorimpl Debug for Color[src]
impl Debug for Colorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Color[src]
impl PartialEq for Colorfn eq(&self, other: &Color) -> bool[src]
fn eq(&self, other: &Color) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Color[src]
impl Eq for Colorimpl<'a> From<&'a str> for Color[src]
impl<'a> From<&'a str> for Colorimpl From<String> for Color[src]
impl From<String> for Colorimpl FromStr for Color[src]
impl FromStr for Color