# Function rustc_const_eval::const_eval::mk_eval_cx_for_const_val

source ·

    pub fn mk_eval_cx_for_const_val<'mir, 'tcx>(
        tcx: TyCtxtAt<'tcx>,
        param_env: ParamEnv<'tcx>,
        val: ConstValue<'tcx>,
        ty: Ty<'tcx>
    ) -> Option<(InterpCx<'mir, 'tcx, CompileTimeInterpreter<'mir, 'tcx>>, OpTy<'tcx>)>

Expand description

Create an interpreter context to inspect the given `ConstValue`. Returns both the context and an `OpTy` that represents the constant.