Skip to main content

non_zero_realloc

Function non_zero_realloc 

Source
pub unsafe fn non_zero_realloc(
    ptr: *mut u8,
    layout: Layout,
    new_size: usize,
) -> *mut u8
Expand 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.