Type Alias llama_cpp_sys::ggml_opt_callback

source ·
pub type ggml_opt_callback = Option<unsafe extern "C" fn(data: *mut c_void, accum_step: c_int, sched: *mut f32, cancel: *mut bool)>;

Aliased Type§

enum ggml_opt_callback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *mut f32, _: *mut bool)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *mut f32, _: *mut bool))

Some value of type T.