Struct arret_runtime::boxed::collect::StrongPass [−][src]
pub struct StrongPass { /* fields omitted */ }Strong pass from an old Heap in to a new Heap
visit_box should be called for each GC root that needs to be moved to
the new heap. Once all roots have been visited into_new_heap will
return the new Heap or into_weak_pass will start an optional
weak pass.
Implementations
impl StrongPass[src]
impl StrongPass[src]pub fn new(old_heap: Heap) -> StrongPass[src]
Consumes an existing heap to begin a garbage collection pass
pub fn into_weak_pass(self) -> WeakPass[src]
Continues as a weak reference pass
pub fn into_new_heap(self) -> Heap[src]
Finishes garbage collection by returning the new heap
pub fn visit_box<T: Boxed>(&mut self, box_ref: &mut Gc<T>)[src]
Visits a garbage collected box as a strong root