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]

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

Auto Trait Implementations

impl !RefUnwindSafe for StrongPass

impl !Send for StrongPass

impl !Sync for StrongPass

impl Unpin for StrongPass

impl UnwindSafe for StrongPass

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.