CNLP_Eval_G_CB

Type Alias CNLP_Eval_G_CB 

Source
pub type CNLP_Eval_G_CB = Option<unsafe extern "C" fn(n: CNLP_Index, x: *const CNLP_Number, new_x: CNLP_Bool, m: CNLP_Index, g: *mut CNLP_Number, user_data: CNLP_UserDataPtr) -> CNLP_Bool>;
Expand description

Type defining the callback function for evaluating the value of the constraint functions. Return value should be set to 0 if there was a problem doing the evaluation.

Aliased Type§

pub enum CNLP_Eval_G_CB {
    None,
    Some(unsafe extern "C" fn(i32, *const f64, i32, i32, *mut f64, *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, *const f64, i32, i32, *mut f64, *mut c_void) -> i32)

Some value of type T.