[−][src]Trait crossterm::style::Colorize
Provides a set of methods to set the colors.
Every method with the on_
prefix sets the background color. All other methods set
the foreground color.
Method names correspond to the Color
enum variants.
Examples
use crossterm::style::Colorize; let styled_text = "Red foreground color on blue background.".red().on_blue(); println!("{}", styled_text);