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