pub trait MaybeTermination<S: PlanningSolution, D: ScoreDirector<S>>: Send {
// Required method
fn should_terminate(&self, solver_scope: &SolverScope<'_, S, D>) -> bool;
}Expand description
Marker trait for termination types that can be used in Solver.
Required Methods§
Sourcefn should_terminate(&self, solver_scope: &SolverScope<'_, S, D>) -> bool
fn should_terminate(&self, solver_scope: &SolverScope<'_, S, D>) -> bool
Checks if the solver should terminate.