Function mnemos_alloc::heap::deallocate_raw
source · pub unsafe fn deallocate_raw(ptr: NonNull<()>, layout: Layout)
Expand description
Deallocate an unsized allocation with the provided Layout
.
Safety
ptr
must have been returned by a call toAHeap::allocate_raw
orHeapGuard::alloc_raw
!layout
must be the sameLayout
that was provided to the original call toAHeap::allocate_raw
orHeapGuard::alloc_raw
!