pub trait SolveEventHandler {
// Provided method
fn on_solve_event(
&mut self,
_event: SolveEvent<'_>,
_goon: &mut bool,
) -> bool { ... }
}Provided Methods§
Sourcefn on_solve_event(&mut self, _event: SolveEvent<'_>, _goon: &mut bool) -> bool
fn on_solve_event(&mut self, _event: SolveEvent<'_>, _goon: &mut bool) -> bool
Callback function called during search to notify when the search is finished or a model is ready
Attention: If the search is finished, the model is NULL.
§Arguments
event- the solve eventgoon- can be set to false to stop solving
Returns whether the call was successful
See: Control::solve()