Function debug

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

Turn a closure into a struct implementing Debug.