pub struct Stacks { /* private fields */ }
Expand description
Extra per-allocation state.
Implementations§
source§impl Stacks
impl Stacks
Glue code to connect with Miri Machine Hooks
pub fn new_allocation( id: AllocId, size: Size, state: &mut GlobalStateInner, kind: MemoryKind, machine: &MiriMachine<'_, '_> ) -> Self
pub fn before_memory_read<'tcx, 'mir, 'ecx>(
&mut self,
alloc_id: AllocId,
tag: ProvenanceExtra,
range: AllocRange,
machine: &'ecx MiriMachine<'mir, 'tcx>
) -> InterpResult<'tcx>where
'tcx: 'ecx,
pub fn before_memory_write<'tcx>( &mut self, alloc_id: AllocId, tag: ProvenanceExtra, range: AllocRange, machine: &MiriMachine<'_, 'tcx> ) -> InterpResult<'tcx>
pub fn before_memory_deallocation<'tcx>( &mut self, alloc_id: AllocId, tag: ProvenanceExtra, size: Size, machine: &MiriMachine<'_, 'tcx> ) -> InterpResult<'tcx>
Trait Implementations§
source§impl VisitProvenance for Stacks
impl VisitProvenance for Stacks
fn visit_provenance(&self, visit: &mut VisitWith<'_>)
Auto Trait Implementations§
impl Freeze for Stacks
impl RefUnwindSafe for Stacks
impl Send for Stacks
impl Sync for Stacks
impl Unpin for Stacks
impl UnwindSafe for Stacks
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more