Skip to main content

dealloc

Function dealloc 

Source
pub unsafe fn dealloc(ptr: *mut u8, layout: Layout)
Expand description

Fallible deallocation matching standard alloc interface.

ยงSafety

  • ptr is a block of memory currently allocated via this allocator and,
  • layout is the same layout that was used to allocate that block of memory.