Trait itree::color::Color [−][src]
pub trait Color { fn write_fg(&self, f: &mut Formatter) -> Result<(), Error>; fn write_bg(&self, f: &mut Formatter) -> Result<(), Error>; }
A terminal color.
Required Methods
fn write_fg(&self, f: &mut Formatter) -> Result<(), Error>
Write the foreground version of this color.
fn write_bg(&self, f: &mut Formatter) -> Result<(), Error>
Write the background version of this color.
Trait Implementations
Implementors
impl Color for LightWhite
impl Color for White
impl Color for Blue
impl Color for Black
impl Color for Green
impl Color for Cyan
impl Color for Magenta
impl Color for LightBlue
impl Color for LightRed
impl Color for LightGreen
impl Color for Yellow
impl Color for LightCyan
impl Color for LightBlack
impl<'a> Color for &'a (Color + 'a)
impl Color for LightYellow
impl Color for Rgb
impl Color for Red
impl Color for AnsiValue
impl Color for Reset
impl Color for LightMagenta