Function rustc::traits::find_method [] [src]

pub fn find_method<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
                             name: Name,
                             substs: &'tcx Substs<'tcx>,
                             impl_data: &VtableImplData<'tcx, ()>)
                             -> (DefId, &'tcx Substs<'tcx>)
🔬 This is a nightly-only experimental API. (rustc_private)

Given a selected impl described by impl_data, returns the definition and substitions for the method with the name name, and trait method substitutions substs, in that impl, a less specialized impl, or the trait default, whichever applies.