[][src]Enum alacritty_terminal::ansi::NamedColor

pub enum NamedColor {
    Black,
    Red,
    Green,
    Yellow,
    Blue,
    Magenta,
    Cyan,
    White,
    BrightBlack,
    BrightRed,
    BrightGreen,
    BrightYellow,
    BrightBlue,
    BrightMagenta,
    BrightCyan,
    BrightWhite,
    Foreground,
    Background,
    Cursor,
    DimBlack,
    DimRed,
    DimGreen,
    DimYellow,
    DimBlue,
    DimMagenta,
    DimCyan,
    DimWhite,
    BrightForeground,
    DimForeground,
}

Standard colors.

The order here matters since the enum should be castable to a usize for indexing a color list.

Variants

Black

Black.

Red

Red.

Green

Green.

Yellow

Yellow.

Blue

Blue.

Magenta

Magenta.

Cyan

Cyan.

White

White.

BrightBlack

Bright black.

BrightRed

Bright red.

BrightGreen

Bright green.

BrightYellow

Bright yellow.

BrightBlue

Bright blue.

BrightMagenta

Bright magenta.

BrightCyan

Bright cyan.

BrightWhite

Bright white.

Foreground

The foreground color.

Background

The background color.

Cursor

Color for the cursor itself.

DimBlack

Dim black.

DimRed

Dim red.

DimGreen

Dim green.

DimYellow

Dim yellow.

DimBlue

Dim blue.

DimMagenta

Dim magenta.

DimCyan

Dim cyan.

DimWhite

Dim white.

BrightForeground

The bright foreground color.

DimForeground

Dim foreground.

Implementations

impl NamedColor[src]

pub fn to_bright(self) -> Self[src]

pub fn to_dim(self) -> Self[src]

Trait Implementations

impl Clone for NamedColor[src]

impl Copy for NamedColor[src]

impl Debug for NamedColor[src]

impl<'de> Deserialize<'de> for NamedColor[src]

impl Eq for NamedColor[src]

impl Index<NamedColor> for List[src]

type Output = Rgb

The returned type after indexing.

impl IndexMut<NamedColor> for List[src]

impl Ord for NamedColor[src]

impl PartialEq<NamedColor> for NamedColor[src]

impl PartialOrd<NamedColor> for NamedColor[src]

impl Serialize for NamedColor[src]

impl StructuralEq for NamedColor[src]

impl StructuralPartialEq for NamedColor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.