pub type reallocate_function = Option<unsafe extern "C" fn(ptr: *mut c_void, old_size: usize, new_size: usize) -> *mut c_void>;
Expand description

See: reallocate_function

Planned change

In the next major version of the crate (version 2), this will be changed to unsafe extern "C" fn(ptr: *mut c_void, old_size: usize, new_size: usize) -> *mut c_void, that is it will no longer be an Option.

Aliased Type§

enum reallocate_function {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: usize, _: usize) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: usize, _: usize) -> *mut c_void)

Some value of type T.