pub type NameFn = fn(f: &mut Formatter<'_>, opts: NameOpts) -> Result;
A function that formats the name of a type.
This helps avoid allocations, and it takes options.