pub(crate) fn from_item_id(item_id: ItemId, tcx: TyCtxt<'_>) -> Id
Expand description

It generates an ID as follows:

CRATE_ID:ITEM_ID[:NAME_ID] (if there is no name, NAME_ID is not generated).