Struct rustc_middle::mir::interpret::AllocMap [−][src]
pub(crate) struct AllocMap<'tcx> {
alloc_map: FxHashMap<AllocId, GlobalAlloc<'tcx>>,
dedup: FxHashMap<GlobalAlloc<'tcx>, AllocId>,
next_id: AllocId,
}Fields
alloc_map: FxHashMap<AllocId, GlobalAlloc<'tcx>>Expand description
Maps AllocIds to their corresponding allocations.
dedup: FxHashMap<GlobalAlloc<'tcx>, AllocId>Expand description
Used to ensure that statics and functions only get one associated AllocId.
Should never contain a GlobalAlloc::Memory!
next_id: AllocIdExpand description
The AllocId to assign to the next requested ID.
Always incremented; never gets smaller.
Implementations
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for AllocMap<'tcx>
impl<'tcx> !Send for AllocMap<'tcx>
impl<'tcx> !Sync for AllocMap<'tcx>
impl<'tcx> Unpin for AllocMap<'tcx>
impl<'tcx> !UnwindSafe for AllocMap<'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> MaybeResult<T> for T[src]
impl<T> MaybeResult<T> for T[src]impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,