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§
Sourcefn b_magentab(self) -> String
fn b_magentab(self) -> String
Background magenta bright
Sourcefn underlined(self) -> String
fn underlined(self) -> String
Text underlined
Sourcefn crossedout(self) -> String
fn crossedout(self) -> String
Crossed out