pub enum CollectionPhase {
Sleeping,
Marking,
Marked,
Sweeping,
}Variants§
Sleeping
The arena is done with a collection cycle and is waiting to be restarted.
Marking
The arena is currently tracing objects from the root to determine reachability.
Marked
The arena has finished tracing, all reachable objects are marked. This may transition
back to Marking if write barriers occur.
Sweeping
The arena has determined a set of unreachable objects and has started freeing them. At this point, marking is no longer taking place so the root may have reachable, unmarked pointers.
Trait Implementations§
Source§impl Clone for CollectionPhase
impl Clone for CollectionPhase
Source§fn clone(&self) -> CollectionPhase
fn clone(&self) -> CollectionPhase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CollectionPhase
impl Debug for CollectionPhase
Source§impl Ord for CollectionPhase
impl Ord for CollectionPhase
Source§fn cmp(&self, other: &CollectionPhase) -> Ordering
fn cmp(&self, other: &CollectionPhase) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CollectionPhase
impl PartialEq for CollectionPhase
Source§impl PartialOrd for CollectionPhase
impl PartialOrd for CollectionPhase
impl Copy for CollectionPhase
impl Eq for CollectionPhase
impl StructuralPartialEq for CollectionPhase
Auto Trait Implementations§
impl Freeze for CollectionPhase
impl RefUnwindSafe for CollectionPhase
impl Send for CollectionPhase
impl Sync for CollectionPhase
impl Unpin for CollectionPhase
impl UnwindSafe for CollectionPhase
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