Trait ColorExt

Source
pub trait ColorExt
where Self: Color,
{
Show 16 methods // Provided methods fn rgb(&self, r: u8, g: u8, b: u8) -> ColorFmt<'_, Self, 1, 0> { ... } fn rgb_bg(&self, r: u8, g: u8, b: u8) -> ColorFmt<'_, Self, 1, 0> { ... } fn red(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn red_bg(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn green(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn green_bg(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn yellow(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn yellow_bg(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn blue(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn blue_bg(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn light_blue(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn light_blue_bg(&self) -> ColorFmt<'_, Self, 1, 0> { ... } fn italic(&self) -> ColorFmt<'_, Self, 0, 1> { ... } fn bold(&self) -> ColorFmt<'_, Self, 0, 1> { ... } fn underline(&self) -> ColorFmt<'_, Self, 0, 1> { ... } fn crossed_out(&self) -> ColorFmt<'_, Self, 0, 1> { ... }
}

Provided Methods§

Source

fn rgb(&self, r: u8, g: u8, b: u8) -> ColorFmt<'_, Self, 1, 0>

Source

fn rgb_bg(&self, r: u8, g: u8, b: u8) -> ColorFmt<'_, Self, 1, 0>

Source

fn red(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn red_bg(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn green(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn green_bg(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn yellow(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn yellow_bg(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn blue(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn blue_bg(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn light_blue(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn light_blue_bg(&self) -> ColorFmt<'_, Self, 1, 0>

Source

fn italic(&self) -> ColorFmt<'_, Self, 0, 1>

Source

fn bold(&self) -> ColorFmt<'_, Self, 0, 1>

Source

fn underline(&self) -> ColorFmt<'_, Self, 0, 1>

Source

fn crossed_out(&self) -> ColorFmt<'_, Self, 0, 1>

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.

Implementors§

Source§

impl<T: Display> ColorExt for T