[][src]Enum text_style::AnsiColor

pub enum AnsiColor {
    Black,
    Red,
    Green,
    Yellow,
    Blue,
    Magenta,
    Cyan,
    White,
}

An ANSI base color.

This enum contains the basic eight ANSI colors. These colors are available in two modes: Dark and Light. Combinations of an ANSI color and a mode are stored in the Color enum.

Variants

Black

Black (ANSI color #0 (dark) or #8 (light)).

Red

Red (ANSI color #1 (dark) or #9 (light)).

Green

Green (ANSI color #2 (dark) or #10 (light)).

Yellow

Yellow (ANSI color #3 (dark) or #11 (light)).

Blue

Blue (ANSI color #4 (dark) or #12 (light)).

Magenta

Magenta (ANSI color #5 (dark) or #13 (light)).

Cyan

Cyan (ANSI color #6 (dark) or #14 (light)).

White

White (ANSI color #7 (dark) or #15 (light)).

Implementations

impl AnsiColor[src]

pub fn dark(self) -> Color[src]

Returns the dark variant of this ANSI color.

pub fn light(self) -> Color[src]

Returns the light variant of this ANSI color.

Trait Implementations

impl Clone for AnsiColor[src]

impl Copy for AnsiColor[src]

impl Debug for AnsiColor[src]

impl From<AnsiColor> for BaseColor[src]

impl PartialEq<AnsiColor> for AnsiColor[src]

impl StructuralPartialEq for AnsiColor[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> Erased for T

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.

impl<T> With for T