pub trait RuntimeMemoryCreator: Send + Sync {
fn new_memory(
&self,
plan: &MemoryPlan
) -> Result<Box<dyn RuntimeLinearMemory>, String>;
}
Expand description
A memory allocator
Required methods
fn new_memory(
&self,
plan: &MemoryPlan
) -> Result<Box<dyn RuntimeLinearMemory>, String>
fn new_memory(
&self,
plan: &MemoryPlan
) -> Result<Box<dyn RuntimeLinearMemory>, String>
Create new RuntimeLinearMemory