Trait RuntimeMemoryCreator

Source
pub trait RuntimeMemoryCreator: Send + Sync {
    // Required method
    fn new_memory(
        &self,
        plan: &MemoryPlan,
    ) -> Result<Box<dyn RuntimeLinearMemory>, String>;
}
Expand description

A memory allocator

Required Methods§

Source

fn new_memory( &self, plan: &MemoryPlan, ) -> Result<Box<dyn RuntimeLinearMemory>, String>

Create new RuntimeLinearMemory

Implementors§