pub trait MaybeTermination<S: PlanningSolution, D: Director<S>, ProgressCb: ProgressCallback<S> = ()>: Send {
// Required method
fn should_terminate(
&self,
solver_scope: &SolverScope<'_, S, D, ProgressCb>,
) -> bool;
// Provided method
fn install_inphase_limits(
&self,
_solver_scope: &mut SolverScope<'_, S, D, ProgressCb>,
) { ... }
}Expand description
Marker trait for termination types that can be used in Solver.
Required Methods§
fn should_terminate( &self, solver_scope: &SolverScope<'_, S, D, ProgressCb>, ) -> bool
Provided Methods§
fn install_inphase_limits( &self, _solver_scope: &mut SolverScope<'_, S, D, ProgressCb>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".