pub struct CdclSolver { /* private fields */ }Expand description
Conflict-Driven Clause Learning (CDCL) SAT solver
Implementations§
Source§impl CdclSolver
impl CdclSolver
Sourcepub fn add_clause(&mut self, clause: SatClause)
pub fn add_clause(&mut self, clause: SatClause)
Add a clause to the solver
Sourcepub fn get_assignment(&self) -> &Assignment
pub fn get_assignment(&self) -> &Assignment
Get the current assignment
Trait Implementations§
Source§impl Debug for CdclSolver
impl Debug for CdclSolver
Auto Trait Implementations§
impl Freeze for CdclSolver
impl RefUnwindSafe for CdclSolver
impl Send for CdclSolver
impl Sync for CdclSolver
impl Unpin for CdclSolver
impl UnsafeUnpin for CdclSolver
impl UnwindSafe for CdclSolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more