Function from_fn
const fn from_fn<F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result>(f: F) -> FromFn<F>
Creates a type whose fmt::Debug and fmt::Display impls are
forwarded to the provided closure.
Examples
use fmt;
let value = 'a';
assert_eq!;
assert_eq!;
let wrapped = from_fn;
assert_eq!;
assert_eq!;