rustc_trait_selection::traits::vtable

Function prepare_vtable_segments_inner

Source
fn prepare_vtable_segments_inner<'tcx, T>(
    tcx: TyCtxt<'tcx>,
    trait_ref: PolyTraitRef<'tcx>,
    segment_visitor: impl FnMut(VtblSegment<'tcx>) -> ControlFlow<T>,
) -> ControlFlow<T>
Expand description

Helper for prepare_vtable_segments that returns ControlFlow, such that we can use ? in the body.