kvarn_utils::prelude::fmt

Struct FromFn

source
pub struct FromFn<F>(/* private fields */)
where
    F: Fn(&mut Formatter<'_>) -> Result<(), Error>;
🔬This is a nightly-only experimental API. (debug_closure_helpers)
Expand description

Implements fmt::Debug and fmt::Display using a function.

Created with from_fn.

Trait Implementations§

source§

impl<F> Debug for FromFn<F>
where F: Fn(&mut Formatter<'_>) -> Result<(), Error>,

source§

fn fmt(&self, f: &mut Formatter<'_>) ->