Crates.io | prettier-print |
lib.rs | prettier-print |
version | 0.1.2 |
source | src |
created_at | 2021-07-31 18:45:26.157312 |
updated_at | 2021-08-01 16:33:55.932237 |
description | 🌈 Prettier-printed debug strings 🌈 |
homepage | |
repository | https://github.com/MakotoE/prettier-print |
max_upload_size | |
id | 429787 |
size | 6,294,016 |
I'm not a fan of the built-in "pretty-printed" debug output (format string "{:#?}"
) because they don't look so pretty to me. That is why I made this crate.
prettier-print
contains two modules. The first is prettier_printer
which adds rainbows and stars to the debug string.
// How to use PrettierPrinter
println!("{}", PrettierPrinter::default().print(&variable));
sparkles
prints the debug string, and then runs game of life on top of the printed string.
let stdout = stdout();
Sparkles::new(stdout.lock()).run(&variable)?;