Enum crossterm::style::Color[][src]

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 termainal font.

Variants

Fields of Rgb

Trait Implementations

impl Debug for Color
[src]

Formats the value using the given formatter. Read more

impl Copy for Color
[src]

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> From<&'a str> for Color
[src]

Performs the conversion.

impl From<String> for Color
[src]

Performs the conversion.

impl FromStr for Color
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Color

impl Sync for Color