[−][src]Struct splr::solver::Restarter
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:
- the number of blocking in non-stabilization
- the number of forcing restart non-stabilization
- the index of span of stabilization phase
- the number of stabilization cycle shifts
- 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();
pub fn mode(&self) -> (RestartMode, usize)
[src]
impl<'a> ExportBox<'a, (&'a Ema2, &'a Ema2)> for Restarter
[src]
pub fn exports_box(&'a self) -> Box<RestarterEMAs<'a>>
[src]
impl Instantiate for Restarter
[src]
pub fn instantiate(config: &Config, cnf: &CNFDescription) -> Self
[src]
pub fn handle(&mut self, e: SolverEvent)
[src]
impl RestartIF for Restarter
[src]
Auto Trait Implementations
impl RefUnwindSafe for Restarter
[src]
impl Send for Restarter
[src]
impl Sync for Restarter
[src]
impl Unpin for Restarter
[src]
impl UnwindSafe for Restarter
[src]
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,
pub 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, 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.
pub 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>,