Function rustc::traits::find_associated_item [] [src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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