Trait mmtk::util::object_enum::ObjectEnumerator
source · pub trait ObjectEnumerator {
// Required methods
fn visit_object(&mut self, object: ObjectReference);
fn visit_address_range(&mut self, start: Address, end: Address);
}
Expand description
A trait for enumerating objects in spaces, used by Space::enumerate_objects
.
Required Methods§
sourcefn visit_object(&mut self, object: ObjectReference)
fn visit_object(&mut self, object: ObjectReference)
Visit a single object.
sourcefn visit_address_range(&mut self, start: Address, end: Address)
fn visit_address_range(&mut self, start: Address, end: Address)
Visit an address range that may contain objects.