pub struct Heap {
pub do_gc_after_drop: bool,
/* private fields */
}Fields§
§do_gc_after_drop: boolIf this value is true then when heap is dropped GC cycle is performed to drop all values.
Implementations§
Source§impl Heap
impl Heap
pub fn root<T: Trace + Sized + 'static>( &mut self, value: Handle<T>, ) -> Rooted<T>
pub fn new( new_page_size: usize, old_page_size: usize, do_gc_after_drop: bool, ) -> Heap
pub fn allocate<T: Trace + 'static>(&mut self, value: T) -> Rooted<T>
pub fn needs_gc(&self) -> bool
pub fn safepoint(&mut self)
pub fn collect(&mut self)
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 UnsafeUnpin 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