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

Write the foreground version of this color.

Write the background version of this color.

Trait Implementations

impl<'a> Color for &'a (Color + 'a)
[src]

Write the foreground version of this color.

Write the background version of this color.

Implementors