MaybeTermination

Trait MaybeTermination 

Source
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§

Source

fn should_terminate(&self, solver_scope: &SolverScope<'_, S, D>) -> bool

Checks if the solver should terminate.

Implementations on Foreign Types§

Source§

impl<S: PlanningSolution, D: ScoreDirector<S>, T: Termination<S, D>> MaybeTermination<S, D> for Option<T>

Source§

fn should_terminate(&self, solver_scope: &SolverScope<'_, S, D>) -> bool

Implementors§