Solver

Trait Solver 

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

Source

fn after_iter<'a>(&'a mut self, p: &'a mut P) -> SolverFuture<'a, Self::Error>

Do solving work after stoping criteria verification.

Source

fn before_iter<'a>(&'a mut self, p: &'a mut P) -> SolverFuture<'a, Self::Error>

Do solving work before stoping criteria verification.

Provided Methods§

Source

fn finished(&mut self, _: &mut P)

Source

fn init(&mut self, _: &mut P)

Implementors§