pub trait ColorPalette {
// Required methods
fn format_heading(&self) -> ColoredString;
fn format_heading_nobold(&self) -> ColoredString;
fn format_subheading(&self) -> ColoredString;
fn format_binary(&self) -> ColoredString;
fn format_value(&self) -> ColoredString;
fn format_error(&self) -> ColoredString;
}Expand description
Custom colors used in printing
Required Methods§
Sourcefn format_heading(&self) -> ColoredString
fn format_heading(&self) -> ColoredString
Format text as a heading
Sourcefn format_heading_nobold(&self) -> ColoredString
fn format_heading_nobold(&self) -> ColoredString
Format text as a heading no bold
Sourcefn format_subheading(&self) -> ColoredString
fn format_subheading(&self) -> ColoredString
Format text as a subheading
Sourcefn format_binary(&self) -> ColoredString
fn format_binary(&self) -> ColoredString
Format text as binary name
Sourcefn format_value(&self) -> ColoredString
fn format_value(&self) -> ColoredString
Format text as a subheading
Sourcefn format_error(&self) -> ColoredString
fn format_error(&self) -> ColoredString
Format text as a error
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".