Skip to main content

non_zero_dealloc

Function non_zero_dealloc 

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

std::alloc::dealloc counterpart of non_zero_alloc.

ยงSafety

Same as std::alloc::dealloc. layout must be the layout the pointer was allocated with, before the zero-size bump is applied.