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§
sourcefn visit_slot(&mut self, slot: SL)
fn visit_slot(&mut self, slot: SL)
Call this function for each slot.
Implementors§
impl<'a, E: ProcessEdgesWork> SlotVisitor<<<E as ProcessEdgesWork>::VM as VMBinding>::VMSlot> for ObjectsClosure<'a, E>
impl<SL: Slot, F: FnMut(SL)> SlotVisitor<SL> for F
This lets us use closures as SlotVisitor.