pub trait ColorExtwhere
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§
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>
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.