pub trait Callbacks {
fn started(&mut self) { ... }
fn terminate(&mut self) -> bool { ... }
fn max_length(&self) -> i32 { ... }
fn learn(&mut self, clause: &[i32]) { ... }
}
Expand description
Callbacks trait for finer control.
Provided Methods§
sourcefn terminate(&mut self) -> bool
fn terminate(&mut self) -> bool
Called by the solver periodically to check if it should terminate.
sourcefn max_length(&self) -> i32
fn max_length(&self) -> i32
Returns the maximum length of clauses to be passed to learn
. This
methods will be called only once when set_callbacks
is called.