pub fn find_generic_param<'tcx>(
tcx: TyCtxt<'tcx>,
def_id: DefId,
type_ident: String,
) -> Option<Ty<'tcx>>Expand description
Search function parameters (and the self type for methods) for a
generic type whose name matches type_ident.