Function syntex_syntax::ast_util::impl_pretty_name
[−]
[src]
pub fn impl_pretty_name(trait_ref: &Option<TraitRef>, ty: Option<&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).