exhibit 0.2.0

A small Rust library for controlling the display of any Displayable type
Documentation
use std::fmt;

use crate::exhibit::Exhibit;

/// A trait that provides control over
/// how [`Display`](std::fmt::Display)able types are shown.
///
/// This is implemented by any type that implements the `Display` trait.
pub trait ExhibitExt {
    /// Wrap the given value in an [`Exhibit`] instance.
    fn exhibit(&self) -> Exhibit<Self>;
}

impl<T> ExhibitExt for T
where
    T: fmt::Display,
{
    fn exhibit(&self) -> Exhibit<Self> {
        Exhibit::new(self)
    }
}