Trait rustc_middle::mir::interpret::AllocationExtra [−][src]
Provided methods
fn memory_read<'tcx>(
_alloc: &Allocation<Tag, Self>,
_ptr: Pointer<Tag>,
_size: Size
) -> InterpResult<'tcx>[src]
_alloc: &Allocation<Tag, Self>,
_ptr: Pointer<Tag>,
_size: Size
) -> InterpResult<'tcx>
Hook for performing extra checks on a memory read access.
Takes read-only access to the allocation so we can keep all the memory read
operations take &self. Use a RefCell in AllocExtra if you
need to mutate.
fn memory_written<'tcx>(
_alloc: &mut Allocation<Tag, Self>,
_ptr: Pointer<Tag>,
_size: Size
) -> InterpResult<'tcx>[src]
_alloc: &mut Allocation<Tag, Self>,
_ptr: Pointer<Tag>,
_size: Size
) -> InterpResult<'tcx>
Hook for performing extra checks on a memory write access.
fn memory_deallocated<'tcx>(
_alloc: &mut Allocation<Tag, Self>,
_ptr: Pointer<Tag>,
_size: Size
) -> InterpResult<'tcx>[src]
_alloc: &mut Allocation<Tag, Self>,
_ptr: Pointer<Tag>,
_size: Size
) -> InterpResult<'tcx>
Hook for performing extra checks on a memory deallocation.
size will be the size of the allocation.