Colored

Trait Colored 

Source
pub trait Colored {
    // Required method
    fn colored(self) -> ColoredString;
}
Expand description

The trait that enables a string to be colorized

Required Methods§

Source

fn colored(self) -> ColoredString

Creates a new ColoredString by parsing given text.

Implementations on Foreign Types§

Source§

impl<'a> Colored for &'a str

Implementors§