pub fn from_fn<F>(f: F) -> FromFn<F>where F: Fn(&mut Formatter<'_>) -> Result,
Creates a formatter from a function.