Function debug

pub fn debug<F>(f: F) -> impl Debug
where F: Fn(&mut Formatter<'_>) -> Result<(), Error>,
Expand description

Turn a closure into a struct implementing Debug.