Skip to main content

Colorize

Trait Colorize 

Source
pub trait Colorize {
Show 44 methods // Required methods fn with_style(&self, style: &str) -> String; fn with_styles(&self, style: &[&str]) -> String; fn reset(&self) -> String; fn foreground(&self) -> String; fn background(&self) -> String; fn bold(&self) -> String; fn dim(&self) -> String; fn italic(&self) -> String; fn underline(&self) -> String; fn inverse(&self) -> String; fn hidden(&self) -> String; fn strikethrough(&self) -> String; 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 white(&self) -> String; fn gray(&self) -> String; fn bg_black(&self) -> String; fn bg_red(&self) -> String; fn bg_green(&self) -> String; fn bg_yellow(&self) -> String; fn bg_blue(&self) -> String; fn bg_magenta(&self) -> String; fn bg_cyan(&self) -> String; fn bg_white(&self) -> String; fn bright_red(&self) -> String; fn bright_green(&self) -> String; fn bright_yellow(&self) -> String; fn bright_blue(&self) -> String; fn bright_magenta(&self) -> String; fn bright_cyan(&self) -> String; fn bright_white(&self) -> String; fn bright_bg_black(&self) -> String; fn bright_bg_red(&self) -> String; fn bright_bg_green(&self) -> String; fn bright_bg_yellow(&self) -> String; fn bright_bg_blue(&self) -> String; fn bright_bg_magenta(&self) -> String; fn bright_bg_cyan(&self) -> String; fn bright_bg_white(&self) -> String;
}

Required Methods§

Source

fn with_style(&self, style: &str) -> String

Source

fn with_styles(&self, style: &[&str]) -> String

Source

fn reset(&self) -> String

Source

fn foreground(&self) -> String

Source

fn background(&self) -> String

Source

fn bold(&self) -> String

Source

fn dim(&self) -> String

Source

fn italic(&self) -> String

Source

fn underline(&self) -> String

Source

fn inverse(&self) -> String

Source

fn hidden(&self) -> String

Source

fn strikethrough(&self) -> String

Source

fn black(&self) -> String

Source

fn red(&self) -> String

Source

fn green(&self) -> String

Source

fn yellow(&self) -> String

Source

fn blue(&self) -> String

Source

fn magenta(&self) -> String

Source

fn cyan(&self) -> String

Source

fn white(&self) -> String

Source

fn gray(&self) -> String

Source

fn bg_black(&self) -> String

Source

fn bg_red(&self) -> String

Source

fn bg_green(&self) -> String

Source

fn bg_yellow(&self) -> String

Source

fn bg_blue(&self) -> String

Source

fn bg_magenta(&self) -> String

Source

fn bg_cyan(&self) -> String

Source

fn bg_white(&self) -> String

Source

fn bright_red(&self) -> String

Source

fn bright_green(&self) -> String

Source

fn bright_yellow(&self) -> String

Source

fn bright_blue(&self) -> String

Source

fn bright_magenta(&self) -> String

Source

fn bright_cyan(&self) -> String

Source

fn bright_white(&self) -> String

Source

fn bright_bg_black(&self) -> String

Source

fn bright_bg_red(&self) -> String

Source

fn bright_bg_green(&self) -> String

Source

fn bright_bg_yellow(&self) -> String

Source

fn bright_bg_blue(&self) -> String

Source

fn bright_bg_magenta(&self) -> String

Source

fn bright_bg_cyan(&self) -> String

Source

fn bright_bg_white(&self) -> String

Implementations on Foreign Types§

Source§

impl Colorize for str

Source§

fn with_style(&self, style: &str) -> String

Source§

fn with_styles(&self, style: &[&str]) -> String

Source§

fn reset(&self) -> String

Source§

fn foreground(&self) -> String

Source§

fn background(&self) -> String

Source§

fn bold(&self) -> String

Source§

fn dim(&self) -> String

Source§

fn italic(&self) -> String

Source§

fn underline(&self) -> String

Source§

fn inverse(&self) -> String

Source§

fn hidden(&self) -> String

Source§

fn strikethrough(&self) -> String

Source§

fn black(&self) -> String

Source§

fn red(&self) -> String

Source§

fn green(&self) -> String

Source§

fn yellow(&self) -> String

Source§

fn blue(&self) -> String

Source§

fn magenta(&self) -> String

Source§

fn cyan(&self) -> String

Source§

fn white(&self) -> String

Source§

fn gray(&self) -> String

Source§

fn bg_black(&self) -> String

Source§

fn bg_red(&self) -> String

Source§

fn bg_green(&self) -> String

Source§

fn bg_yellow(&self) -> String

Source§

fn bg_blue(&self) -> String

Source§

fn bg_magenta(&self) -> String

Source§

fn bg_cyan(&self) -> String

Source§

fn bg_white(&self) -> String

Source§

fn bright_red(&self) -> String

Source§

fn bright_green(&self) -> String

Source§

fn bright_yellow(&self) -> String

Source§

fn bright_blue(&self) -> String

Source§

fn bright_magenta(&self) -> String

Source§

fn bright_cyan(&self) -> String

Source§

fn bright_white(&self) -> String

Source§

fn bright_bg_black(&self) -> String

Source§

fn bright_bg_red(&self) -> String

Source§

fn bright_bg_green(&self) -> String

Source§

fn bright_bg_yellow(&self) -> String

Source§

fn bright_bg_blue(&self) -> String

Source§

fn bright_bg_magenta(&self) -> String

Source§

fn bright_bg_cyan(&self) -> String

Source§

fn bright_bg_white(&self) -> String

Source§

impl Colorize for String

Source§

fn with_style(&self, style: &str) -> String

Source§

fn with_styles(&self, style: &[&str]) -> String

Source§

fn reset(&self) -> String

Source§

fn foreground(&self) -> String

Source§

fn background(&self) -> String

Source§

fn bold(&self) -> String

Source§

fn dim(&self) -> String

Source§

fn italic(&self) -> String

Source§

fn underline(&self) -> String

Source§

fn inverse(&self) -> String

Source§

fn hidden(&self) -> String

Source§

fn strikethrough(&self) -> String

Source§

fn black(&self) -> String

Source§

fn red(&self) -> String

Source§

fn green(&self) -> String

Source§

fn yellow(&self) -> String

Source§

fn blue(&self) -> String

Source§

fn magenta(&self) -> String

Source§

fn cyan(&self) -> String

Source§

fn white(&self) -> String

Source§

fn gray(&self) -> String

Source§

fn bg_black(&self) -> String

Source§

fn bg_red(&self) -> String

Source§

fn bg_green(&self) -> String

Source§

fn bg_yellow(&self) -> String

Source§

fn bg_blue(&self) -> String

Source§

fn bg_magenta(&self) -> String

Source§

fn bg_cyan(&self) -> String

Source§

fn bg_white(&self) -> String

Source§

fn bright_red(&self) -> String

Source§

fn bright_green(&self) -> String

Source§

fn bright_yellow(&self) -> String

Source§

fn bright_blue(&self) -> String

Source§

fn bright_magenta(&self) -> String

Source§

fn bright_cyan(&self) -> String

Source§

fn bright_white(&self) -> String

Source§

fn bright_bg_black(&self) -> String

Source§

fn bright_bg_red(&self) -> String

Source§

fn bright_bg_green(&self) -> String

Source§

fn bright_bg_yellow(&self) -> String

Source§

fn bright_bg_blue(&self) -> String

Source§

fn bright_bg_magenta(&self) -> String

Source§

fn bright_bg_cyan(&self) -> String

Source§

fn bright_bg_white(&self) -> String

Implementors§