pub trait Solver<P> {
type Error;
// Required methods
fn after_iter<'a>(
&'a mut self,
p: &'a mut P,
) -> SolverFuture<'a, Self::Error>;
fn before_iter<'a>(
&'a mut self,
p: &'a mut P,
) -> SolverFuture<'a, Self::Error>;
// Provided methods
fn finished(&mut self, _: &mut P) { ... }
fn init(&mut self, _: &mut P) { ... }
}Required Associated Types§
Required Methods§
Sourcefn after_iter<'a>(&'a mut self, p: &'a mut P) -> SolverFuture<'a, Self::Error>
fn after_iter<'a>(&'a mut self, p: &'a mut P) -> SolverFuture<'a, Self::Error>
Do solving work after stoping criteria verification.
Sourcefn before_iter<'a>(&'a mut self, p: &'a mut P) -> SolverFuture<'a, Self::Error>
fn before_iter<'a>(&'a mut self, p: &'a mut P) -> SolverFuture<'a, Self::Error>
Do solving work before stoping criteria verification.