Skip to main content

public_def_path

Function public_def_path 

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

The canonical std JSON asset key for a DefId, prefixed by its defining crate. Types resolve re-exports; inherent methods keep the module::method shape, except that the private alloc::rcs module (Rust 1.96+) is mapped back to the public rc/sync.