Enum miri::borrow_tracker::AllocState
source · pub enum AllocState {
StackedBorrows(Box<RefCell<Stacks>>),
TreeBorrows(Box<RefCell<Tree>>),
}
Expand description
Extra per-allocation data for borrow tracking
Variants§
StackedBorrows(Box<RefCell<Stacks>>)
Data corresponding to Stacked Borrows
TreeBorrows(Box<RefCell<Tree>>)
Data corresponding to Tree Borrows
Implementations§
source§impl AllocState
impl AllocState
pub fn before_memory_read<'tcx>( &self, alloc_id: AllocId, prov_extra: ProvenanceExtra, range: AllocRange, machine: &MiriMachine<'_, 'tcx> ) -> InterpResult<'tcx>
pub fn before_memory_write<'tcx>( &mut self, alloc_id: AllocId, prov_extra: ProvenanceExtra, range: AllocRange, machine: &MiriMachine<'_, 'tcx> ) -> InterpResult<'tcx>
pub fn before_memory_deallocation<'tcx>( &mut self, alloc_id: AllocId, prov_extra: ProvenanceExtra, range: AllocRange, machine: &MiriMachine<'_, 'tcx> ) -> InterpResult<'tcx>
Trait Implementations§
source§impl Clone for AllocState
impl Clone for AllocState
source§fn clone(&self) -> AllocState
fn clone(&self) -> AllocState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AllocState
impl Debug for AllocState
source§impl VisitTags for AllocState
impl VisitTags for AllocState
Auto Trait Implementations§
impl !RefUnwindSafe for AllocState
impl !Send for AllocState
impl !Sync for AllocState
impl Unpin for AllocState
impl UnwindSafe for AllocState
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
StackedBorrows
: 8 bytesTreeBorrows
: 8 bytes