pub struct CpuAllocator;Trait Implementations§
Source§impl MemAlloc for CpuAllocator
impl MemAlloc for CpuAllocator
type Data = CpuMemBlock
type Error = MemError
fn memory_type(&self) -> MemType
fn alloc_frame( &self, data: &[u8], ) -> Result<<CpuAllocator as MemAlloc>::Data, <CpuAllocator as MemAlloc>::Error>
Auto Trait Implementations§
impl Freeze for CpuAllocator
impl RefUnwindSafe for CpuAllocator
impl Send for CpuAllocator
impl Sync for CpuAllocator
impl Unpin for CpuAllocator
impl UnwindSafe for CpuAllocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more