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