Function rustc_lint::middle::traits::get_vtable_index_of_object_method
[−]
[src]
pub fn get_vtable_index_of_object_method(tcx: &ctxt<'tcx>, object_trait_ref: Binder<TraitRef<'tcx>>, trait_def_id: DefId, method_offset_in_trait: usize) -> usize
Unstable
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.