pub trait MaybeTermination<S: PlanningSolution, D: Director<S>, BestCb: BestSolutionCallback<S> = ()>: Send {
// Required method
fn should_terminate(
&self,
solver_scope: &SolverScope<'_, S, D, BestCb>,
) -> bool;
// Provided method
fn install_inphase_limits(
&self,
_solver_scope: &mut SolverScope<'_, S, D, BestCb>,
) { ... }
}Expand description
Marker trait for termination types that can be used in Solver.