Type Alias xmlMallocFunc

Source
pub type xmlMallocFunc = Option<unsafe extern "C" fn(size: usize) -> *mut c_void>;
Expand description

xmlMallocFunc: @size: the size requested in bytes

Signature for a malloc() implementation.

Returns a pointer to the newly allocated block or NULL in case of error.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.