pub trait ToTypeName {
// Required method
fn to_type_name(&self) -> String;
// Provided method
fn to_type_ident(&self, span: Span) -> Ident { ... }
}
Expand description
Helper trait for generating a (pascal case) Rust type name/identifier. Particularly helpful in derive macros when generating enum variants for struct fields.