get_cleaned_def_path_name

Function get_cleaned_def_path_name 

Source
pub fn get_cleaned_def_path_name(tcx: TyCtxt<'_>, def_id: DefId) -> String
Expand description

Clean a DefId debug representation into a human-readable path.

The raw {:?} output of DefId includes crate hashes and generic-parameter brackets. This function normalises the leading crate name (core / std / alloc) and replaces mangled generic sections with the implementing struct name (via get_struct_name).