Crates.io | exhibit |
lib.rs | exhibit |
version | 0.2.0 |
source | src |
created_at | 2022-07-23 23:05:49.688646 |
updated_at | 2022-07-24 00:42:07.39728 |
description | A small Rust library for controlling the display of any Displayable type |
homepage | |
repository | |
max_upload_size | |
id | 631749 |
size | 56,841 |
exhibit
is a small Rust library for controlling the display
of any Display
able type.
The main functionality is provided by the ExhibitExt
trait.
use exhibit::ExhibitExt;
let text = "\x1b[31mHello, 🌎!\x1b[0m";
assert_eq!(
text.exhibit().redact(true).into(),
"\x1b[31m▆▅▆▆▅, ▇▇!\x1b[0m\n",
);