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