Type Alias cassandra_cpp_sys::CassMallocFunction

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

A custom malloc function. This function should allocate “size” bytes and return a pointer to that memory

@param[in] size The size of the memory to allocate

@see CassFreeFunction @see cass_alloc_set_functions()

Aliased Type§

enum CassMallocFunction {
    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.