Function rustc::middle::traits::get_vtable_index_of_object_methodUnstable [-] [+] [src]

pub fn get_vtable_index_of_object_method<'tcx>(tcx: &ctxt<'tcx>, object_trait_ref: PolyTraitRef<'tcx>, trait_def_id: DefId, method_offset_in_trait: usize) -> usize

Given an object of type object_trait_ref, returns the index of the method n_method found in the trait trait_def_id (which should be a supertrait of object_trait_ref) within the vtable for object_trait_ref.