Struct runtime::memory::MemoryManager
source · [−]pub struct MemoryManager { /* private fields */ }
Implementations
sourceimpl MemoryManager
impl MemoryManager
pub fn new() -> Self
pub fn register_context(&mut self, cid: ContextId)
pub fn do_not_drop(
&mut self,
cid: ContextId,
index: LocalName
) -> RuntimeResult<()>
pub fn register_frame(&mut self, fid: FrameId, cid: ContextId)
pub fn get(&self, index: NonLocalName) -> RuntimeResult<ObjectRef>
pub fn set(&mut self, index: NonLocalName, val: ObjectRef) -> RuntimeResult<()>
pub fn clear_frame(&mut self, fid: FrameId) -> RuntimeResult<()>
Trait Implementations
sourceimpl Debug for MemoryManager
impl Debug for MemoryManager
Auto Trait Implementations
impl !RefUnwindSafe for MemoryManager
impl !Send for MemoryManager
impl !Sync for MemoryManager
impl Unpin for MemoryManager
impl !UnwindSafe for MemoryManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more