pub trait Callbacks {
    fn on_start(&mut self) { ... }
    fn on_simplify(&mut self) { ... }
    fn on_gc(&mut self, _old_size: usize, _new_size: usize) { ... }
    fn on_progress(&mut self, _f: &ProgressStatus) { ... }
    fn on_result(&mut self, _s: lbool) { ... }
    fn stop(&self) -> bool { ... }
}
Expand description

Basic callbacks to the solver

Typically intended for printing/statistics

Provided Methods

Called before starting to solve

Called whenever the solver simplifies its set of clauses

Called after a clause GC

called regularly to indicate progress

Called when a result is computed

Should we stop? called regularly for asynchronous interrupts and such

Implementors