Trait mmtk::vm::SlotVisitor

source ·
pub trait SlotVisitor<SL: Slot> {
    // Required method
    fn visit_slot(&mut self, slot: SL);
}
Expand description

Callback trait of scanning functions that report slots.

Required Methods§

source

fn visit_slot(&mut self, slot: SL)

Call this function for each slot.

Implementors§

source§

impl<'a, E: ProcessEdgesWork> SlotVisitor<<<E as ProcessEdgesWork>::VM as VMBinding>::VMSlot> for ObjectsClosure<'a, E>

source§

impl<SL: Slot, F: FnMut(SL)> SlotVisitor<SL> for F

This lets us use closures as SlotVisitor.