Trait colorfully::traits::Colors

source ·
pub trait Colors {
Show 36 methods fn black(&self) -> String; fn red(&self) -> String; fn green(&self) -> String; fn yellow(&self) -> String; fn blue(&self) -> String; fn cyan(&self) -> String; fn purple(&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_cyan(&self) -> String; fn bg_purple(&self) -> String; fn bg_white(&self) -> String; fn bg_gray(&self) -> String; fn lighter_black(&self) -> String; fn lighter_red(&self) -> String; fn lighter_green(&self) -> String; fn lighter_yellow(&self) -> String; fn lighter_blue(&self) -> String; fn lighter_cyan(&self) -> String; fn lighter_purple(&self) -> String; fn lighter_white(&self) -> String; fn lighter_gray(&self) -> String; fn lighter_bg_black(&self) -> String; fn lighter_bg_red(&self) -> String; fn lighter_bg_green(&self) -> String; fn lighter_bg_yellow(&self) -> String; fn lighter_bg_blue(&self) -> String; fn lighter_bg_cyan(&self) -> String; fn lighter_bg_purple(&self) -> String; fn lighter_bg_white(&self) -> String; fn lighter_bg_gray(&self) -> String;
}

Required Methods§

Implementations on Foreign Types§

make black text

let text = "black.to_string()"
println!("{} color",  text.black());

make red text

let text = "red".to_string();
println!("{} color",  text.red());

make green text

let text = "green.to_string()"
println!("{} color",  text.green());

make yellow text

let text = "yellow".to_string();
println!("{} color",  text.yellow());

make blue text

let text = "blue".to_string();
println!("{} color",  text.blue());

make purple text

let text = "purple".to_string();
println!("{} color",  text.purple());

make cyan text

let text = "cyan".to_string();
println!("{} color",  text.cyan());

make white text

let text = "white".to_string();
println!("{} color",  text.white());

make gray text

let text = "gray".to_string();
println!("{} color",  text.gray());

make black background text

let text = "black background".to_string();
println!("{}",  text.bg_black());

make red background text

let text = "red background".to_string();
println!("{}",  text.bg_red());

make green background text

let text = "green background".to_string();
println!("{}",  text.bg_green());

make yellow background text

let text = "yellow background".to_string();
println!("{}",  text.bg_yellow());

make blue background text

let text = "blue background".to_string();
println!("{}",  text.bg_blue());

make purple background text

let text = "purple background".to_string();
println!("{}",  text.bg_purple());

make cyan background text

let text = "cyan background".to_string();
println!("{}",  text.bg_cyan());

make white background text

let text = "white background".to_string();
println!("{}",  text.bg_white());

make gray background text

let text = "gray background".to_string();
println!("{}",  text.bg_gray());

make light black text

let text = "black".to_string();
println!("{} color",  text.lighter_black());

make light red text

let text = "red".to_string();
println!("{} color",  text.lighter_red());

make light green text

let text = "green".to_string();
println!("{} color",  text.lighter_green());

make light yellow text

let text = "yellow".to_string();
println!("{} color",  text.lighter_yellow());

make light blue text

let text = "blue".to_string();
println!("{} color",  text.lighter_blue());

make light purple text

let text = "purple".to_string();
println!("{} color",  text.lighter_purple());

make light cyan text

let text = "cyan".to_string();
println!("{} color",  text.lighter_cyan());

make light white text

let text = "white".to_string();
println!("{} color",  text.lighter_white());

make light gray text

let text = "gray".to_string();
println!("{} color",  text.lighter_gray());

make lighter black background text

let text = "black background".to_string();
println!("{}",  text.lighter_bg_black());

maklighter e red background text

let text = "red background".to_string();
println!("{}",  text.lighter_bg_red());

make lighter green background text

let text = "green background".to_string();
println!("{}",  text.lighter_bg_green());

make ylighter ellow background text

let text = "yellow background".to_string();
println!("{}",  text.lighter_bg_yellow());

makelighter blue background text

let text = "blue background".to_string();
println!("{}",  text.lighter_bg_blue());

make plighter urple background text

let text = "purple background".to_string();
println!("{}",  text.lighter_bg_purple());

makelighter cyan background text

let text = "cyan background".to_string();
println!("{}",  text.lighter_bg_cyan());

make lighter white background text

let text = "white background".to_string();
println!("{}",  text.lighter_bg_white());

makelighter gray background text

let text = "gray background".to_string();
println!("{}",  text.lighter_bg_gray());

make black text

let text = "black"
println!("{} color",  text.black());

make red text

let text = "red"
println!("{} color",  text.red());

make green text

let text = "green"
println!("{} color",  text.green());

make yellow text

let text = "yellow"
println!("{} color",  text.yellow());

make blue text

let text = "blue"
println!("{} color",  text.blue());

make purple text

let text = "purple"
println!("{} color",  text.purple());

make cyan text

let text = "cyan"
println!("{} color",  text.cyan());

make white text

let text = "white"
println!("{} color",  text.white());

make gray text

let text = "gray"
println!("{} color",  text.gray());

make black background text

let text = "black background"
println!("{}",  text.bg_black());

make red background text

let text = "red background"
println!("{}",  text.bg_red());

make green background text

let text = "green background"
println!("{}",  text.bg_green());

make yellow background text

let text = "yellow background"
println!("{}",  text.bg_yellow());

make blue background text

let text = "blue background"
println!("{}",  text.bg_blue());

make purple background text

let text = "purple background"
println!("{}",  text.bg_purple());

make cyan background text

let text = "cyan background"
println!("{}",  text.bg_cyan());

make white background text

let text = "white background"
println!("{}",  text.bg_white());

make gray background text

let text = "gray background"
println!("{}",  text.bg_gray());

make light black text

let text = "black"
println!("{} color",  text.lighter_black());

make light red text

let text = "red"
println!("{} color",  text.lighter_red());

make light green text

let text = "green"
println!("{} color",  text.lighter_green());

make light yellow text

let text = "yellow"
println!("{} color",  text.lighter_yellow());

make light blue text

let text = "blue"
println!("{} color",  text.lighter_blue());

make light purple text

let text = "purple"
println!("{} color",  text.lighter_purple());

make light cyan text

let text = "cyan"
println!("{} color",  text.lighter_cyan());

make light white text

let text = "white"
println!("{} color",  text.lighter_white());

make light gray text

let text = "gray"
println!("{} color",  text.lighter_gray());

make lighter black background text

let text = "black background"
println!("{}",  text.lighter_bg_black());

maklighter e red background text

let text = "red background"
println!("{}",  text.lighter_bg_red());

make lighter green background text

let text = "green background"
println!("{}",  text.lighter_bg_green());

make ylighter ellow background text

let text = "yellow background"
println!("{}",  text.lighter_bg_yellow());

makelighter blue background text

let text = "blue background"
println!("{}",  text.lighter_bg_blue());

make plighter urple background text

let text = "purple background"
println!("{}",  text.lighter_bg_purple());

makelighter cyan background text

let text = "cyan background"
println!("{}",  text.lighter_bg_cyan());

make lighter white background text

let text = "white background"
println!("{}",  text.lighter_bg_white());

makelighter gray background text

let text = "gray background"
println!("{}",  text.lighter_bg_gray());

Implementors§