pub trait VisitorTrait {
// Required methods
fn visit_conservative(
&mut self,
from: *const *const u8,
to: *const *const u8,
);
fn heap(&self) -> *mut Heap;
// Provided method
fn visit(&mut self, this: *const u8, descriptor: TraceDescriptor) { ... }
}
Required Methods§
Sourcefn visit_conservative(&mut self, from: *const *const u8, to: *const *const u8)
fn visit_conservative(&mut self, from: *const *const u8, to: *const *const u8)
Visits objects in from
to to
range conservatively. This function will read gc info index from
each object that is found in memory range and obtain TraceDescriptor from that.
fn heap(&self) -> *mut Heap
Provided Methods§
Sourcefn visit(&mut self, this: *const u8, descriptor: TraceDescriptor)
fn visit(&mut self, this: *const u8, descriptor: TraceDescriptor)
Visits object with provided TraceDescriptor.