Trait EvalContextExt

Source
pub trait EvalContextExt<'tcx>: MiriInterpCxExt<'tcx> {
    // Provided methods
    fn read_handle(
        &self,
        handle: &OpTy<'tcx>,
        function_name: &str,
    ) -> InterpResult<'tcx, Handle> { ... }
    fn invalid_handle(&mut self, function_name: &str) -> InterpResult<'tcx, !> { ... }
    fn CloseHandle(
        &mut self,
        handle_op: &OpTy<'tcx>,
    ) -> InterpResult<'tcx, Scalar> { ... }
}

Provided Methods§

Source

fn read_handle( &self, handle: &OpTy<'tcx>, function_name: &str, ) -> InterpResult<'tcx, Handle>

Convert a scalar into a structured Handle. If the handle is invalid, or references a non-existent item, execution is aborted.

Source

fn invalid_handle(&mut self, function_name: &str) -> InterpResult<'tcx, !>

Source

fn CloseHandle(&mut self, handle_op: &OpTy<'tcx>) -> InterpResult<'tcx, Scalar>

Implementors§

Source§

impl<'tcx> EvalContextExt<'tcx> for MiriInterpCx<'tcx>