pub trait Color: Debug {
// Required methods
fn write_fg(&self, f: &mut Formatter<'_>) -> Result;
fn write_bg(&self, f: &mut Formatter<'_>) -> Result;
}
Expand description
A terminal color.
pub trait Color: Debug {
// Required methods
fn write_fg(&self, f: &mut Formatter<'_>) -> Result;
fn write_bg(&self, f: &mut Formatter<'_>) -> Result;
}
A terminal color.