Skip to main content

ColorPalette

Trait ColorPalette 

Source
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§

Source

fn format_heading(&self) -> ColoredString

Format text as a heading

Source

fn format_heading_nobold(&self) -> ColoredString

Format text as a heading no bold

Source

fn format_subheading(&self) -> ColoredString

Format text as a subheading

Source

fn format_binary(&self) -> ColoredString

Format text as binary name

Source

fn format_value(&self) -> ColoredString

Format text as a subheading

Source

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".

Implementations on Foreign Types§

Source§

impl<'a> ColorPalette for &'a str

Implementors§