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§
Sourceconst RAW_ANSI_FG: &'static str
const RAW_ANSI_FG: &'static str
The raw ANSI format for settings this color as the foreground without the ANSI delimiters (“\x1b” and “m”)
Sourceconst RAW_ANSI_BG: &'static str
const RAW_ANSI_BG: &'static str
The raw ANSI format for settings this color as the background without the ANSI delimiters (“\x1b” and “m”)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.