Skip to main content

xmlListDataCompare

Type Alias xmlListDataCompare 

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

Callback function used to compare 2 data.

@param data0 the first data @param data1 the second data @returns 0 is equality, -1 or 1 otherwise depending on the ordering.

Aliased Type§

pub enum xmlListDataCompare {
    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.