pub enum Color {
White0,
White1,
Gray,
Black,
}Expand description
A traced color in the tri-color invariant.
Variants§
White0
Not yet visited in the current cycle. The collector alternates between two white bits so allocations made during sweep are not collected by the cycle already in progress.
White1
Alternate white bit.
Gray
Visited; outgoing references not yet traced.
Black
Fully traced; no outgoing pointers to white objects.
Implementations§
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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