Type Alias XGBCallbackSetData

Source
pub type XGBCallbackSetData = Option<unsafe extern "C" fn(handle: DataHolderHandle, batch: XGBoostBatchCSR) -> c_int>;
Expand description

\brief Callback to set the data to handle, \param handle The handle to the callback. \param batch The data content to be set.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.