pub type TypeNameFn = fn(shape: &'static Shape, f: &mut Formatter<'_>, opts: TypeNameOpts) -> Result;Expand description
Function pointer type for formatting type names.
Takes the shape (for accessing type params) and formatting options.
This lives on Shape, not in the vtable, because it’s about the type itself,
not about values of the type.