[][src]Trait termion::color::Color

pub trait Color: Debug {
    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.

Loading content...

Trait Implementations

impl<'a> Color for &'a dyn Color[src]

Implementors

impl Color for AnsiValue[src]

impl Color for Black[src]

impl Color for Blue[src]

impl Color for Cyan[src]

impl Color for Green[src]

impl Color for LightBlack[src]

impl Color for LightBlue[src]

impl Color for LightCyan[src]

impl Color for LightGreen[src]

impl Color for LightMagenta[src]

impl Color for LightRed[src]

impl Color for LightWhite[src]

impl Color for LightYellow[src]

impl Color for Magenta[src]

impl Color for Red[src]

impl Color for Reset[src]

impl Color for Rgb[src]

impl Color for White[src]

impl Color for Yellow[src]

impl<'a> Color for &'a dyn Color[src]

Loading content...