Function rustc_ty_utils::layout::generator_layout
source · fn generator_layout<'tcx>(
cx: &LayoutCx<'tcx, TyCtxt<'tcx>>,
ty: Ty<'tcx>,
def_id: DefId,
substs: SubstsRef<'tcx>
) -> Result<Layout<'tcx>, LayoutError<'tcx>>
Expand description
Compute the full generator layout.