Trait zerogc::GcVisitor [−][src]
pub unsafe trait GcVisitor: Sized { type Err: Debug; unsafe fn visit_gc<'gc, T: GcSafe + 'gc, G: GcRef<'gc, T>>(
&mut self,
gc: &mut G
) -> Result<(), Self::Err>; fn visit<T: Trace + ?Sized>(
&mut self,
value: &mut T
) -> Result<(), Self::Err> { ... } fn visit_immutable<T: TraceImmutable + ?Sized>(
&mut self,
value: &T
) -> Result<(), Self::Err> { ... } }
Expand description
Visits garbage collected objects
This should only be used by a GcSystem
Associated Types
Required methods
unsafe fn visit_gc<'gc, T: GcSafe + 'gc, G: GcRef<'gc, T>>(
&mut self,
gc: &mut G
) -> Result<(), Self::Err>
[src]
&mut self,
gc: &mut G
) -> Result<(), Self::Err>
Expand description
Visit a garbage collected pointer
Safety
Undefined behavior if the GC pointer isn’t properly visited.
Provided methods
fn visit<T: Trace + ?Sized>(&mut self, value: &mut T) -> Result<(), Self::Err>
[src]
Expand description
Visit a reference to the specified value
fn visit_immutable<T: TraceImmutable + ?Sized>(
&mut self,
value: &T
) -> Result<(), Self::Err>
[src]
&mut self,
value: &T
) -> Result<(), Self::Err>
Expand description
Visit a reference to the specified value