Struct zerogc_simple::layout::SimpleMarkData [−][src]
#[repr(transparent)]pub struct SimpleMarkData { /* fields omitted */ }
Expand description
The internal ‘marking data’ used for the simple collector.
The internals of this structure are private. As of right now, the simple collector has no extra room for any user-defined metadata in this type.
Implementations
Create mark data from a specified snapshot
Load a snapshot of the object’s current marking state
Trait Implementations
impl<'new_gc, Id: CollectorId> GcRebrand<'new_gc, Id> for SimpleMarkData where
Self: NullTrace,
impl<'new_gc, Id: CollectorId> GcRebrand<'new_gc, Id> for SimpleMarkData where
Self: NullTrace,
Whether this type needs to be traced by the garbage collector. Read more
If this type needs a destructor run. Read more
Visit each field in this type Read more
unsafe fn visit_inside_gc<'actual_gc, Visitor, ActualId>(
gc: &mut Gc<'actual_gc, Self, ActualId>,
visitor: &mut Visitor
) -> Result<(), Visitor::Err> where
Visitor: GcVisitor,
ActualId: CollectorId,
Self: GcSafe + 'actual_gc,
unsafe fn visit_inside_gc<'actual_gc, Visitor, ActualId>(
gc: &mut Gc<'actual_gc, Self, ActualId>,
visitor: &mut Visitor
) -> Result<(), Visitor::Err> where
Visitor: GcVisitor,
ActualId: CollectorId,
Self: GcSafe + 'actual_gc,
Visit this object, assuming its already inside a GC pointer. Read more