TerminationCondition

Trait TerminationCondition 

Source
pub trait TerminationCondition {
    // Required method
    fn should_stop(&mut self) -> bool;
}
Expand description

The central trait that defines a termination condition. A termination condition determines when the solver should give up searching for solutions.

§Notes

  • Any Box<dyn TerminationCondition> is a valid implementation of TerminationCondition.

Required Methods§

Source

fn should_stop(&mut self) -> bool

Returns true when the solver should stop, false otherwise.

Trait Implementations§

Source§

impl TerminationCondition for Box<dyn TerminationCondition>

Source§

fn should_stop(&mut self) -> bool

Returns true when the solver should stop, false otherwise.

Implementations on Foreign Types§

Source§

impl TerminationCondition for Box<dyn TerminationCondition>

Source§

fn should_stop(&mut self) -> bool

Source§

impl<T> TerminationCondition for Option<T>

Source§

fn should_stop(&mut self) -> bool

Implementors§