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
fn black(self) -> String
Foreground black
fn red(self) -> String
Foreground red
fn green(self) -> String
Foreground green
fn yellow(self) -> String
Foreground yellow
fn blue(self) -> String
Foreground blue
fn magenta(self) -> String
Foreground magenta
fn cyan(self) -> String
Foreground cyan
fn grey(self) -> String
Foreground grey
fn b_black(self) -> String
Foreground black bright
fn b_red(self) -> String
Foreground red bright
fn b_green(self) -> String
Foreground green bright
fn b_yellow(self) -> String
Foreground yellow bright
fn b_blue(self) -> String
Foreground blue bright
fn b_magenta(self) -> String
Foreground magenta bright
fn b_cyan(self) -> String
Foreground cyan bright
fn b_grey(self) -> String
Foreground grey bright
fn default(self) -> String
Foreground default
fn blackb(self) -> String
Background black
fn redb(self) -> String
Background red
fn greenb(self) -> String
Background green
fn yellowb(self) -> String
Background yellow
fn blueb(self) -> String
Background bblue
fn magentab(self) -> String
Background magenta
fn cyanb(self) -> String
Background cyan
fn greyb(self) -> String
Background grey
fn b_blackb(self) -> String
Background black bright
fn b_redb(self) -> String
Background red bright
fn b_greenb(self) -> String
Background green bright
fn b_yellowb(self) -> String
Background yellow bright
fn b_blueb(self) -> String
Background bblue bright
fn b_magentab(self) -> String
Background magenta bright
fn b_cyanb(self) -> String
Background cyan bright
fn b_greyb(self) -> String
Background grey bright
fn defaultb(self) -> String
Background default
fn underlined(self) -> String
Text underlined
fn bold(self) -> String
Bold text
fn blink(self) -> String
Blink test ( Wonderful )
fn reverse(self) -> String
Reverse mod ON
fn concealed(self) -> String
Concealed mod ON
fn faint(self) -> String
Faint mod ON
fn italic(self) -> String
Italic text
fn crossedout(self) -> String
Crossed out