[][src]Trait zerogc::GcVisitor

pub unsafe trait GcVisitor: Sized {
    type Err: Debug;
    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> { ... } }

Visits garbage collected objects

This should only be used by a [GarbageCollectionSystem]

Associated Types

type Err: Debug

Loading content...

Provided methods

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>

Loading content...

Implementors

Loading content...