Skip to main content

get_def_kind

Function get_def_kind 

Source
pub(crate) fn get_def_kind<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> DefKind
Expand description

Gets the kind of the definition. Can’t use def_kind directly because this crashes on the crate root.