NameFn

Type Alias NameFn 

Source
pub type NameFn = fn(f: &mut Formatter<'_>, opts: NameOpts) -> Result;
Expand description

A function that formats the name of a type.

This helps avoid allocations, and it takes options.