pub struct CspSolver {
pub stats: SolverStats,
/* private fields */
}Expand description
A constraint satisfaction problem (CSP) solver.
Fields§
§stats: SolverStatsStatistics about the search
Implementations§
Source§impl CspSolver
impl CspSolver
Sourcepub fn add_variable(&mut self, variable: Variable)
pub fn add_variable(&mut self, variable: Variable)
Add a variable to the CSP.
Sourcepub fn add_constraint(&mut self, constraint: Constraint)
pub fn add_constraint(&mut self, constraint: Constraint)
Add a constraint to the CSP.
Sourcepub fn set_propagation(&mut self, algorithm: PropagationAlgorithm)
pub fn set_propagation(&mut self, algorithm: PropagationAlgorithm)
Set the propagation algorithm.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CspSolver
impl RefUnwindSafe for CspSolver
impl Send for CspSolver
impl Sync for CspSolver
impl Unpin for CspSolver
impl UnwindSafe for CspSolver
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