pub fn canonical_name(t: &Type) -> String
Expand description

Get the canonical, unique-within-this-component name for a type.

When generating helper code for foreign language bindings, it’s sometimes useful to be able to name a particular type in order to e.g. call a helper function that is specific to that type. We support this by defining a naming convention where each type gets a unique canonical name, constructed recursively from the names of its component types (if any).