blob: ce0d2727b21de29c421f06575a4a1c81e08dc501 [file]
use core::fmt;
pub(crate) struct DebugFn<F>(pub(crate) F)
where
F: Fn(&mut fmt::Formatter) -> fmt::Result;
impl<F> fmt::Debug for DebugFn<F>
where
F: Fn(&mut fmt::Formatter) -> fmt::Result,
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
(self.0)(f)
}
}