Trait colored::Colorize [−][src]
The trait that enables something to be given color.
You can use colored
effectively simply by importing this trait
and then using its methods on String
and &str
.
Required methods
fn color<S: Into<Color>>(self, color: S) -> ColoredString
[src]
fn on_color<S: Into<Color>>(self, color: S) -> ColoredString
[src]
fn clear(self) -> ColoredString
[src]
fn normal(self) -> ColoredString
[src]
fn bold(self) -> ColoredString
[src]
fn dimmed(self) -> ColoredString
[src]
fn italic(self) -> ColoredString
[src]
fn underline(self) -> ColoredString
[src]
fn blink(self) -> ColoredString
[src]
fn reverse(self) -> ColoredString
[src]
Historical name of Colorize::reversed
. May be removed in a future version. Please use
Colorize::reversed
instead
fn reversed(self) -> ColoredString
[src]
This should be preferred to Colorize::reverse
.
fn hidden(self) -> ColoredString
[src]
fn strikethrough(self) -> ColoredString
[src]
Provided methods
fn black(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn red(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn green(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn yellow(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn blue(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn magenta(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn purple(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn cyan(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn white(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_black(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_red(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_green(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_yellow(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_blue(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_magenta(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_purple(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_cyan(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn bright_white(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_black(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_red(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_green(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_yellow(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_blue(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_magenta(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_purple(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_cyan(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_white(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_black(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_red(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_green(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_yellow(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_blue(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_magenta(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_purple(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_cyan(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,
fn on_bright_white(self) -> ColoredString where
Self: Sized,
[src]
Self: Sized,