Crate exhibit

Source
Expand description

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).to_string(),
    "\x1b[31mโ–†โ–…โ–†โ–†โ–…, โ–‡โ–‡!\x1b[0m\n",
);

Structsยง

Exhibit
A wrapper around a Displayable type.

Traitsยง

ExhibitExt
A trait that provides control over how Displayable types are shown.