Skip to main content

xmlMallocFunc

Type Alias xmlMallocFunc 

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

Signature for a malloc() implementation.

@param size the size requested in bytes @returns a pointer to the newly allocated block or NULL in case of error.

Aliased Type§

pub 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.