Crates.io | peter |
lib.rs | peter |
version | 0.2.1 |
source | src |
created_at | 2021-02-19 12:40:04.663803 |
updated_at | 2021-04-01 13:58:07.902393 |
description | ANSI terminal colours and styles for anything implementing `Display` |
homepage | |
repository | https://github.com/rossmacarthur/peter |
max_upload_size | |
id | 357548 |
size | 19,396 |
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.
use peter::Stylize;
println!("This is in red: {}", "a red string".red());
println!("How about some {}?", "bold and underline".bold().underline());
Licensed under either of
at your option.