pub type allocate_function = Option<extern "C" fn(alloc_size: usize) -> *mut c_void>;
Expand description

See: allocate_function

Planned change

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

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.