pub trait Property {
    fn reset(&self) -> String;
    fn bold(&self) -> String;
    fn light(&self) -> String;
    fn italic(&self) -> String;
    fn under_line(&self) -> String;
}

Required Methods§

Implementations on Foreign Types§

make original text

let text = "original".to_string
println!("this is {} text",  text.reset.bold());

make bold text

let text = "bold".to_string
println!("this is {} text",  text.bold());

make light text

let text = "light".to_string
println!("this is {} text",  text.light());

make italic text

let text = "italic".to_string
println!("this is {} text",  text.italic());

make under line text

let text = "under line".to_string
println!("this is {} text",  text.under_line());

make original text

let text = "original"
println!("this is {} text",  text.reset.bold());

make bold text

let text = "bold"
println!("this is {} text",  text.bold());

make light text

let text = "light"
println!("this is {} text",  text.light());

make italic text

let text = "italic"
println!("this is {} text",  text.italic());

make under line text

let text = "under line"
println!("this is {} text",  text.under_line());

Implementors§