Function syntax::ast_util::impl_pretty_nameUnstable [-] [+] [src]

pub fn impl_pretty_name(trait_ref: &Option<TraitRef>, ty: &Ty) -> Ident

Generate a "pretty" name for an impl from its type and trait. This is designed so that symbols of impl'd methods give some hint of where they came from, (previously they would all just be listed as __extensions__::method_name::hash, with no indication of the type).