pub struct Heap { /* private fields */ }Implementations§
source§impl Heap
impl Heap
pub fn new() -> Self
sourcepub fn enlist(
&mut self,
env: &mut Environment<String>,
id: String,
obj: Object
) -> Result<RawPtr<Object>, ImmixError>
pub fn enlist( &mut self, env: &mut Environment<String>, id: String, obj: Object ) -> Result<RawPtr<Object>, ImmixError>
allocate object into heap
pub fn get( env: &mut Environment<String>, key: String ) -> Option<TypedPtr<Object>>
sourcepub fn run_gc(&mut self, env: &mut Environment<String>)
pub fn run_gc(&mut self, env: &mut Environment<String>)
mark and sweep
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Heap
impl RefUnwindSafe for Heap
impl !Send for Heap
impl !Sync for Heap
impl Unpin for Heap
impl UnwindSafe for Heap
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more