pub struct HeapDealloc { /* private fields */ }Expand description
Frees memory via alloc::alloc::dealloc with the stored Layout.
This is the default dealloc strategy for arenas that allocate their own backing memory.
Implementations§
Source§impl HeapDealloc
impl HeapDealloc
Sourcepub fn new(layout: Layout) -> Self
pub fn new(layout: Layout) -> Self
Wrap a Layout for deallocation via alloc::alloc::dealloc.
The layout must match the one used to allocate the memory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HeapDealloc
impl RefUnwindSafe for HeapDealloc
impl Send for HeapDealloc
impl Sync for HeapDealloc
impl Unpin for HeapDealloc
impl UnsafeUnpin for HeapDealloc
impl UnwindSafe for HeapDealloc
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