pub fn from_fn<F: Fn(&mut Formatter<'_>) -> Result>(f: F) -> FromFn<F>🔬This is a nightly-only experimental API. (
debug_closure_helpers #117729)Expand description
Creates a type whose fmt::Debug and fmt::Display impls are provided with the function
f.