Trait VisitorTrait

Source
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§

Source

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.

Source

fn heap(&self) -> *mut Heap

Provided Methods§

Source

fn visit(&mut self, this: *const u8, descriptor: TraceDescriptor)

Visits object with provided TraceDescriptor.

Implementors§