//! Contains a wrapper for a function that implements `Debug`. use core::fmt; /// A wrapper for a function that implements `Debug`. pub struct WrapDebug fmt::Result>(pub F); impl fmt::Result> fmt::Debug for WrapDebug { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { (self.0)(f) } }