can_have_generics

Function can_have_generics 

Source
pub(crate) fn can_have_generics<'tcx>(tcx: TyCtxt<'tcx>, def_id: RDefId) -> bool
Expand description

Whether the item can have generic parameters.