pub fn allocate_value(
        &mut self,
        alloc: Allocation,
        kind: MemoryKind<M::MemoryKinds>,
    ) -> EvalResult<'tcx, AllocId> {
        let id = self.tcx.alloc_map.lock().reserve();
        M::add_lock(self, id);
        self.alloc_map.insert(id, alloc);
        self.alloc_kind.insert(id, kind);
        Ok(id)
    }
/// kind is `None` for statics
kind is `None` for statics
kind is ` None ` for statics
pub fn allocate_value(
        &mut self,
        alloc: Allocation,
        kind: MemoryKind<M::MemoryKinds>,
    ) -> EvalResult<'tcx, AllocId> {
        let id = self.tcx.alloc_map.lock().reserve();
        M::add_lock(self, id);
        self.alloc_map.insert(id, alloc);
        self.alloc_kind.insert(id, kind);
        Ok(id)
    }
pub fn allocate_value ( & mut self , alloc : Allocation , kind : MemoryKind < M :: MemoryKinds > , ) -> EvalResult < ' tcx , AllocId > { let id = self . tcx . alloc_map . lock ( ) . reserve ( ) ; M :: add_lock ( self , id ) ; self . alloc_map . insert ( id , alloc ) ; self . alloc_kind . insert ( id , kind ) ; Ok ( id ) }
kind is `None` for statics
kind is ` None ` for statics
&mut self
alloc
Allocation
kind
MemoryKind<M::MemoryKinds>