pub trait RuntimeMemoryCreator: Send + Sync {
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
fn 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