[][src]Struct screwsat::screwsat::Solver

pub struct Solver {
    pub assigns: Vec<bool>,
    // some fields omitted
}

Fields

assigns: Vec<bool>

Implementations

impl Solver[src]

pub fn enqueue(&mut self, var: Var, assign: bool, reason: Option<usize>)[src]

Enqueue a variable to assign a value to a boolean assign

pub fn new_var(&mut self)[src]

pub fn add_clause(&mut self, clause: &[Lit])[src]

Add a new clause to clauses and watch a clause. If a variable is greater than the size of array, grow it.

pub fn new(n: usize, clauses: &[Vec<Lit>]) -> Solver[src]

pub fn reserve_clause(&mut self, cla_num: usize)[src]

pub fn reserve_variable(&mut self, var_num: usize)[src]

pub fn solve(&mut self, msec: Option<u64>) -> Status[src]

Solve a problem and return true if solver finds a SATISFIABLE assignments false if solver finds a given problem is UNSATISFIABLE or reach the time limit

Trait Implementations

impl Debug for Solver[src]

impl Default for Solver[src]

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.