Struct rustc_const_eval::interpret::memory::AllocRefMut [−][src]
pub struct AllocRefMut<'a, 'tcx, Tag, Extra> {
alloc: &'a mut Allocation<Tag, Extra>,
range: AllocRange,
tcx: TyCtxt<'tcx>,
alloc_id: AllocId,
}
Expand description
A reference to some allocation that was already bounds-checked for the given region and had the on-access machine hooks run.
Fields
alloc: &'a mut Allocation<Tag, Extra>
range: AllocRange
tcx: TyCtxt<'tcx>
alloc_id: AllocId
Implementations
Reading and writing.
pub fn write_scalar(
&mut self,
range: AllocRange,
val: ScalarMaybeUninit<Tag>
) -> InterpResult<'tcx>
pub fn write_ptr_sized(
&mut self,
offset: Size,
val: ScalarMaybeUninit<Tag>
) -> InterpResult<'tcx>
Auto Trait Implementations
impl<'a, 'tcx, Tag, Extra> !RefUnwindSafe for AllocRefMut<'a, 'tcx, Tag, Extra>
impl<'a, 'tcx, Tag, Extra> !Send for AllocRefMut<'a, 'tcx, Tag, Extra>
impl<'a, 'tcx, Tag, Extra> !Sync for AllocRefMut<'a, 'tcx, Tag, Extra>
impl<'a, 'tcx, Tag, Extra> Unpin for AllocRefMut<'a, 'tcx, Tag, Extra>
impl<'a, 'tcx, Tag, Extra> !UnwindSafe for AllocRefMut<'a, 'tcx, Tag, Extra>
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: 40 bytes