Type Alias element_seeker

Source
pub type element_seeker = Option<unsafe extern "C" fn(el: *const c_void, indicator: *const c_void) -> c_int>;
Expand description

a seeker of elements.

An element seeker is a function that: -# receives a reference to an element el -# receives a reference to some indicator data -# returns non-0 if the element matches the indicator, 0 otherwise

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

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.