Trait colorize::AnsiColor [] [src]

pub trait AnsiColor {
    fn black(self) -> String;
    fn red(self) -> String;
    fn green(self) -> String;
    fn yellow(self) -> String;
    fn blue(self) -> String;
    fn magenta(self) -> String;
    fn cyan(self) -> String;
    fn grey(self) -> String;
    fn b_black(self) -> String;
    fn b_red(self) -> String;
    fn b_green(self) -> String;
    fn b_yellow(self) -> String;
    fn b_blue(self) -> String;
    fn b_magenta(self) -> String;
    fn b_cyan(self) -> String;
    fn b_grey(self) -> String;
    fn default(self) -> String;
    fn blackb(self) -> String;
    fn redb(self) -> String;
    fn greenb(self) -> String;
    fn yellowb(self) -> String;
    fn blueb(self) -> String;
    fn magentab(self) -> String;
    fn cyanb(self) -> String;
    fn greyb(self) -> String;
    fn b_blackb(self) -> String;
    fn b_redb(self) -> String;
    fn b_greenb(self) -> String;
    fn b_yellowb(self) -> String;
    fn b_blueb(self) -> String;
    fn b_magentab(self) -> String;
    fn b_cyanb(self) -> String;
    fn b_greyb(self) -> String;
    fn defaultb(self) -> String;
    fn underlined(self) -> String;
    fn bold(self) -> String;
    fn blink(self) -> String;
    fn reverse(self) -> String;
    fn concealed(self) -> String;
    fn faint(self) -> String;
    fn italic(self) -> String;
    fn crossedout(self) -> String;
}

Methods extension to colorize the text contained in a string using a simple mathod call

Required Methods

Foreground black

Foreground red

Foreground green

Foreground yellow

Foreground blue

Foreground magenta

Foreground cyan

Foreground grey

Foreground black bright

Foreground red bright

Foreground green bright

Foreground yellow bright

Foreground blue bright

Foreground magenta bright

Foreground cyan bright

Foreground grey bright

Foreground default

Background black

Background red

Background green

Background yellow

Background bblue

Background magenta

Background cyan

Background grey

Background black bright

Background red bright

Background green bright

Background yellow bright

Background bblue bright

Background magenta bright

Background cyan bright

Background grey bright

Background default

Text underlined

Bold text

Blink test ( Wonderful )

Reverse mod ON

Concealed mod ON

Faint mod ON

Italic text

Crossed out

Implementors