pub trait ColorSpec: Seal {
type Dynamic;
const KIND: ColorKind;
// Required methods
fn into_dynamic(self) -> Self::Dynamic;
fn foreground_args(self) -> &'static str;
fn background_args(self) -> &'static str;
fn underline_args(self) -> &'static str;
fn foreground_escape(self) -> &'static str;
fn background_escape(self) -> &'static str;
fn underline_escape(self) -> &'static str;
}
Expand description
A sealed trait for describing ANSI color args
Required Associated Types§
Required Associated Constants§
Required Methods§
sourcefn into_dynamic(self) -> Self::Dynamic
fn into_dynamic(self) -> Self::Dynamic
Covnert to the runtime version of the color
sourcefn foreground_args(self) -> &'static str
fn foreground_args(self) -> &'static str
The foreground color arguments
sourcefn background_args(self) -> &'static str
fn background_args(self) -> &'static str
The background color arguments
sourcefn underline_args(self) -> &'static str
fn underline_args(self) -> &'static str
The underline color arguments
sourcefn foreground_escape(self) -> &'static str
fn foreground_escape(self) -> &'static str
The foreground color sequence
sourcefn background_escape(self) -> &'static str
fn background_escape(self) -> &'static str
The background color sequence
sourcefn underline_escape(self) -> &'static str
fn underline_escape(self) -> &'static str
The underline color sequence