Trait mun_memory::mapping::MemoryMapper
source · pub trait MemoryMapper {
fn map_memory(&self, mapping: Mapping) -> Vec<GcPtr>;
}
Expand description
A trait used to map allocated memory using type differences.
Required Methods§
sourcefn map_memory(&self, mapping: Mapping) -> Vec<GcPtr>
fn map_memory(&self, mapping: Mapping) -> Vec<GcPtr>
Maps its allocated memory using the provided mapping
.
A Vec<GcPtr>
is returned containing all objects of types that were deleted. The
corresponding types have to remain in-memory until the objects have been deallocated.