[−][src]Struct batsat::callbacks::Stats
Basic set of callbacks, maintaining some statistics and a "stop" predicate.
Fields
n_restarts: usize
n_clauses: u64
n_theory: u64
n_learnt: u64
n_gc: usize
Methods
impl Stats
[src]
pub fn new() -> Self
[src]
Allocate a new set of callbacks.
pub fn basic_mut(&mut self) -> &mut Basic
[src]
Cast the statistics CB into a basic CB.
Trait Implementations
impl Callbacks for Stats
[src]
fn stop(&self) -> bool
[src]
fn on_restart(&mut self)
[src]
fn on_gc(&mut self, _: usize, _: usize)
[src]
fn on_new_clause(&mut self, _: &[Lit], k: ClauseKind)
[src]
fn on_start(&mut self)
[src]
fn on_simplify(&mut self)
[src]
fn on_delete_clause(&mut self, _c: &[Lit])
[src]
fn on_progress<F>(&mut self, _f: F) where
F: FnOnce() -> ProgressStatus,
[src]
F: FnOnce() -> ProgressStatus,
fn on_result(&mut self, _s: lbool)
[src]
impl Default for Stats
[src]
impl Display for Stats
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Stats
impl !Send for Stats
impl !Sync for Stats
impl Unpin for Stats
impl !UnwindSafe for Stats
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,