rustc_const_eval::const_eval::eval_queries

Trait InterpretationResult

Source
pub trait InterpretationResult<'tcx> {
    // Required method
    fn make_result(
        mplace: MPlaceTy<'tcx>,
        ecx: &mut InterpCx<'tcx, CompileTimeMachine<'tcx>>,
    ) -> Self;
}

Required Methods§

Source

fn make_result( mplace: MPlaceTy<'tcx>, ecx: &mut InterpCx<'tcx, CompileTimeMachine<'tcx>>, ) -> Self

This function takes the place where the result of the evaluation is stored and prepares it for returning it in the appropriate format needed by the specific evaluation query.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'tcx> InterpretationResult<'tcx> for ConstAlloc<'tcx>

Source§

fn make_result( mplace: MPlaceTy<'tcx>, _ecx: &mut InterpCx<'tcx, CompileTimeMachine<'tcx>>, ) -> Self

Source§

impl<'tcx> InterpretationResult<'tcx> for ConstAllocation<'tcx>

Source§

fn make_result( mplace: MPlaceTy<'tcx>, ecx: &mut InterpCx<'tcx, CompileTimeMachine<'tcx>>, ) -> Self

Implementors§