logo
pub trait Color {
    const ANSI_FG: &'static str;
    const ANSI_BG: &'static str;
    const RAW_ANSI_FG: &'static str;
    const RAW_ANSI_BG: &'static str;
}
Expand description

A trait for describing a type which can be used with FgColorDisplay or BgCBgColorDisplay

Required Associated Constants

The ANSI format code for setting this color as the foreground

The ANSI format code for setting this color as the background

The raw ANSI format for settings this color as the foreground without the ANSI delimiters (“\x1b” and “m”)

The raw ANSI format for settings this color as the background without the ANSI delimiters (“\x1b” and “m”)

Implementors