rustc_trait_selection::traits::vtable

Function prepare_vtable_segments

source
pub fn prepare_vtable_segments<'tcx, T>(
    tcx: TyCtxt<'tcx>,
    trait_ref: PolyTraitRef<'tcx>,
    segment_visitor: impl FnMut(VtblSegment<'tcx>) -> ControlFlow<T>,
) -> Option<T>
Expand description

Prepare the segments for a vtable