runmat-gc-api 0.5.4

Public API types for the RunMat garbage collector
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::GcHandle;

/// Receives GC handles discovered while tracing an owned value graph.
pub trait Tracer {
    fn mark(&mut self, handle: GcHandle);
}

/// Describes how a type exposes nested GC handles.
pub trait Trace {
    fn trace(&self, tracer: &mut dyn Tracer);
}