pub(super) fn from_known_layout<'tcx>(
    tcx: TyCtxtAt<'tcx>,
    param_env: ParamEnv<'tcx>,
    known_layout: Option<TyAndLayout<'tcx>>,
    compute: impl FnOnce() -> InterpResult<'tcx, TyAndLayout<'tcx>>
) -> InterpResult<'tcx, TyAndLayout<'tcx>>
Expand description

Use the already known layout if given (but sanity check in debug mode), or compute the layout.