pub fn from_fn<F: Fn(&mut Formatter<'_>) -> Result>(f: F) -> FromFn<F>Expand description
Creates a type whose fmt::Debug and fmt::Display impls are
forwarded to the provided closure.
pub fn from_fn<F: Fn(&mut Formatter<'_>) -> Result>(f: F) -> FromFn<F>Creates a type whose fmt::Debug and fmt::Display impls are
forwarded to the provided closure.