Enum miri::borrow_tracker::AllocState
source · Expand description
Extra per-allocation data for borrow tracking
Variants§
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: &mut MiriMachine<'_, 'tcx>
) -> InterpResult<'tcx>
pub fn before_memory_deallocation<'tcx>(
&mut self,
alloc_id: AllocId,
prov_extra: ProvenanceExtra,
range: AllocRange,
machine: &mut 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§
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: 8 bytes