pub trait MemAlloc {
type Data: MemBlock;
type Error: Error + Send + Sync + 'static;
// Required methods
fn device(&self) -> MemDevice;
fn alloc(&self, data: &[u8]) -> Result<Self::Data, Self::Error>;
}
pub trait MemAlloc {
type Data: MemBlock;
type Error: Error + Send + Sync + 'static;
// Required methods
fn device(&self) -> MemDevice;
fn alloc(&self, data: &[u8]) -> Result<Self::Data, Self::Error>;
}