#[repr(u8)]pub enum GcColor {
White = 0,
Gray = 1,
Black = 2,
}Expand description
GC tri-color for mark phase.
Variants§
White = 0
Unmarked — reclaimable if still white after marking.
Gray = 1
Reachable but children not yet scanned.
Black = 2
Reachable and all children scanned.
Trait Implementations§
impl Copy for GcColor
impl Eq for GcColor
impl StructuralPartialEq for GcColor
Auto Trait Implementations§
impl Freeze for GcColor
impl RefUnwindSafe for GcColor
impl Send for GcColor
impl Sync for GcColor
impl Unpin for GcColor
impl UnsafeUnpin for GcColor
impl UnwindSafe for GcColor
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