exhibit

Crates.ioexhibit
lib.rsexhibit
version0.2.0
sourcesrc
created_at2022-07-23 23:05:49.688646
updated_at2022-07-24 00:42:07.39728
descriptionA small Rust library for controlling the display of any Displayable type
homepage
repository
max_upload_size
id631749
size56,841
Felipe S. S. Schneider (schneiderfelipe)

documentation

README

exhibit

exhibit is a small Rust library for controlling the display of any Displayable type.

The main functionality is provided by the ExhibitExt trait.

Example

use exhibit::ExhibitExt;

let text = "\x1b[31mHello, 🌎!\x1b[0m";

assert_eq!(
    text.exhibit().redact(true).into(),
    "\x1b[31m▆▅▆▆▅, ▇▇!\x1b[0m\n",
);
Commit count: 0

cargo fmt