pub(super) fn from_known_layout<'tcx>(
tcx: TyCtxtAt<'tcx>,
typing_env: TypingEnv<'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.