[][src]Trait gory::Colorable

pub trait Colorable {
    pub fn set_fg_style(self, color: Color) -> ColorString
    where
        Self: Sized
; pub fn black(self) -> ColorString
    where
        Self: Sized
, { ... }
pub fn red(self) -> ColorString
    where
        Self: Sized
, { ... }
pub fn green(self) -> ColorString
    where
        Self: Sized
, { ... }
pub fn yellow(self) -> ColorString
    where
        Self: Sized
, { ... }
pub fn blue(self) -> ColorString
    where
        Self: Sized
, { ... }
pub fn magenta(self) -> ColorString
    where
        Self: Sized
, { ... }
pub fn cyan(self) -> ColorString
    where
        Self: Sized
, { ... }
pub fn white(self) -> ColorString
    where
        Self: Sized
, { ... } }

Colorable defines a set of simple color functions for a given type

Required methods

pub fn set_fg_style(self, color: Color) -> ColorString where
    Self: Sized
[src]

Loading content...

Provided methods

pub fn black(self) -> ColorString where
    Self: Sized
[src]

pub fn red(self) -> ColorString where
    Self: Sized
[src]

pub fn green(self) -> ColorString where
    Self: Sized
[src]

pub fn yellow(self) -> ColorString where
    Self: Sized
[src]

pub fn blue(self) -> ColorString where
    Self: Sized
[src]

pub fn magenta(self) -> ColorString where
    Self: Sized
[src]

pub fn cyan(self) -> ColorString where
    Self: Sized
[src]

pub fn white(self) -> ColorString where
    Self: Sized
[src]

Loading content...

Implementations on Foreign Types

impl<'a> Colorable for &'a str[src]

Loading content...

Implementors

impl Colorable for ColorString[src]

Loading content...