Enum fern::colors::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
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
BrightBlack
BrightRed
BrightGreen
BrightYellow
BrightBlue
BrightMagenta
BrightCyan
BrightWhite
Methods
impl Color
[src]
Trait Implementations
impl Copy for Color
[src]
impl FromStr for Color
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(src: &str) -> Result<Color, <Color as FromStr>::Err>
[src]
Parses a string s
to return a value of this type. Read more
impl Eq for Color
[src]
impl PartialEq<Color> for Color
[src]
fn eq(&self, __arg_0: &Color) -> bool
[src]
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[src]
This method tests for !=
.
impl<'a> From<&'a str> for Color
[src]
impl From<String> for Color
[src]
impl Clone for Color
[src]
fn clone(&self) -> Color
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more