Trait AnsiColor

Source
pub trait AnsiColor {
Show 42 methods // Required methods 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;
}
Expand description

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

Required Methods§

Source

fn black(self) -> String

Foreground black

Source

fn red(self) -> String

Foreground red

Source

fn green(self) -> String

Foreground green

Source

fn yellow(self) -> String

Foreground yellow

Source

fn blue(self) -> String

Foreground blue

Source

fn magenta(self) -> String

Foreground magenta

Source

fn cyan(self) -> String

Foreground cyan

Source

fn grey(self) -> String

Foreground grey

Source

fn b_black(self) -> String

Foreground black bright

Source

fn b_red(self) -> String

Foreground red bright

Source

fn b_green(self) -> String

Foreground green bright

Source

fn b_yellow(self) -> String

Foreground yellow bright

Source

fn b_blue(self) -> String

Foreground blue bright

Source

fn b_magenta(self) -> String

Foreground magenta bright

Source

fn b_cyan(self) -> String

Foreground cyan bright

Source

fn b_grey(self) -> String

Foreground grey bright

Source

fn default(self) -> String

Foreground default

Source

fn blackb(self) -> String

Background black

Source

fn redb(self) -> String

Background red

Source

fn greenb(self) -> String

Background green

Source

fn yellowb(self) -> String

Background yellow

Source

fn blueb(self) -> String

Background bblue

Source

fn magentab(self) -> String

Background magenta

Source

fn cyanb(self) -> String

Background cyan

Source

fn greyb(self) -> String

Background grey

Source

fn b_blackb(self) -> String

Background black bright

Source

fn b_redb(self) -> String

Background red bright

Source

fn b_greenb(self) -> String

Background green bright

Source

fn b_yellowb(self) -> String

Background yellow bright

Source

fn b_blueb(self) -> String

Background bblue bright

Source

fn b_magentab(self) -> String

Background magenta bright

Source

fn b_cyanb(self) -> String

Background cyan bright

Source

fn b_greyb(self) -> String

Background grey bright

Source

fn defaultb(self) -> String

Background default

Source

fn underlined(self) -> String

Text underlined

Source

fn bold(self) -> String

Bold text

Blink test ( Wonderful )

Source

fn reverse(self) -> String

Reverse mod ON

Source

fn concealed(self) -> String

Concealed mod ON

Source

fn faint(self) -> String

Faint mod ON

Source

fn italic(self) -> String

Italic text

Source

fn crossedout(self) -> String

Crossed out

Implementations on Foreign Types§

Source§

impl AnsiColor for &'static str

Source§

impl AnsiColor for String

Implementors§