pub trait RuntimeMemoryCreator: Send + Sync {
// Required method
fn new_memory(
&self,
plan: &MemoryPlan,
minimum: usize,
maximum: Option<usize>,
memory_image: Option<&Arc<MemoryImage>>
) -> Result<Box<dyn RuntimeLinearMemory>>;
}
Expand description
A memory allocator
Required Methods§
sourcefn new_memory(
&self,
plan: &MemoryPlan,
minimum: usize,
maximum: Option<usize>,
memory_image: Option<&Arc<MemoryImage>>
) -> Result<Box<dyn RuntimeLinearMemory>>
fn new_memory( &self, plan: &MemoryPlan, minimum: usize, maximum: Option<usize>, memory_image: Option<&Arc<MemoryImage>> ) -> Result<Box<dyn RuntimeLinearMemory>>
Create new RuntimeLinearMemory