pub unsafe fn non_zero_realloc(
ptr: *mut u8,
layout: Layout,
new_size: usize,
) -> *mut u8Expand description
std::alloc::realloc counterpart of non_zero_alloc.
ยงSafety
Same as std::alloc::realloc. layout must be the current layout of
ptr and new_size must be non-zero.