Function clingo_sys::clingo_solve_handle_model [] [src]

pub unsafe extern "C" fn clingo_solve_handle_model(
    handle: *const clingo_solve_handle_t,
    model: *mut *mut clingo_model_t
) -> bool

Get the next model (or zero if there are no more models).

Parameters:

  • handle - the target
  • model - the model (it is NULL if there are no more models)

Returns whether the call was successful; might set one of the following error codes:

  • ::clingo_error_bad_alloc
  • ::clingo_error_runtime if solving fails