pub type element_comparator = Option<unsafe extern "C" fn(a: *const c_void, b: *const c_void) -> c_int>;Expand description
a comparator of elements.
A comparator of elements is a function that: -# receives two references to elements a and b -# returns {<0, 0, >0} if (a > b), (a == b), (a < b) respectively
It is responsibility of the function to handle possible NULL values.
Aliased Type§
enum element_comparator {
None,
Some(unsafe extern "C" fn(_: *const c_void, _: *const c_void) -> i32),
}