Function should_encode_type

Source
fn should_encode_type(
    tcx: TyCtxt<'_>,
    def_id: LocalDefId,
    def_kind: DefKind,
) -> bool