Crate peter

Source
Expand description

Peter builds on the ansi_term crate to allow styling of anything implementing Display and makes colorizing text less verbose to use by providing the Stylize trait.

§Examples

use peter::Stylize;

println!("This is in red: {}", "a red string".red());

println!("How about some {}?", "bold and underline".bold().underline());

Structs§

Styled
Wraps something in a Style.

Enums§

Color
See ansi_term::Color.

Traits§

Stylize
Allows anything implementing Display to be styled.