[][src]Struct splr::solver::Restarter

pub struct Restarter { /* fields omitted */ }

Restarter provides restart API and holds data about restart conditions.

Trait Implementations

impl Debug for Restarter[src]

impl Default for Restarter[src]

impl Export<(usize, usize, usize, usize, usize), (RestartMode, usize)> for Restarter[src]

pub fn exports(&self) -> (usize, usize, usize, usize, usize)[src]

exports:

  1. the number of blocking in non-stabilization
  2. the number of forcing restart non-stabilization
  3. the index of span of stabilization phase
  4. the number of stabilization cycle shifts
  5. the maximum length of stabilization span so far
 use crate::splr::{config::Config, solver::Restarter, types::*};
 let rst = Restarter::instantiate(&Config::default(), &CNFDescription::default());
 let (num_blk_non, num_stb_non, num_blk_stb, num_rst_stb, num_rst_lng) = rst.exports();
 let (rst_mode, num_stb) = rst.mode();

impl<'a> ExportBox<'a, (&'a Ema2, &'a Ema2)> for Restarter[src]

impl Instantiate for Restarter[src]

impl RestartIF for Restarter[src]

type Exports = (usize, usize, usize, usize, usize)

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.