Type Alias element_hash_computer

Source
pub type element_hash_computer = Option<unsafe extern "C" fn(el: *const c_void) -> list_hash_t>;
Expand description

a function computing the hash of elements.

An hash computing function is a function that: -# receives the reference to an element el -# returns a hash value for el

It is responsibility of the function to handle possible NULL values.

Aliased Type§

enum element_hash_computer {
    None,
    Some(unsafe extern "C" fn(_: *const c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const c_void) -> i32)

Some value of type T.