pub fn get_def_visibility<'tcx>(
tcx: TyCtxt<'tcx>,
def_id: RDefId,
def_kind: DefKind,
) -> Option<bool>Expand description
Gets the visibility (pub or not) of the definition. Returns None for defs that don’t have a
meaningful visibility.