pub struct BoxAllocator;Expand description
Default implementation of BufferAllocator.
Trait Implementations§
Source§impl BufferAllocator for BoxAllocator
impl BufferAllocator for BoxAllocator
Source§unsafe fn deallocate(ptr: NonNull<MaybeUninit<u8>>, len: u32)
unsafe fn deallocate(ptr: NonNull<MaybeUninit<u8>>, len: u32)
Deallocate a chunk of memory. Read more
Auto Trait Implementations§
impl Freeze for BoxAllocator
impl RefUnwindSafe for BoxAllocator
impl Send for BoxAllocator
impl Sync for BoxAllocator
impl Unpin for BoxAllocator
impl UnsafeUnpin for BoxAllocator
impl UnwindSafe for BoxAllocator
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