pub trait Constraint<D: Domain>: Debug {
// Required methods
fn scope(&self) -> &[VarId] ⓘ;
fn check(&self, assignment: &[Option<D::Value>]) -> bool;
// Provided method
fn revise(&self, vars: &mut [Variable<D>], depth: usize) -> Revision { ... }
}Expand description
A constraint over one or more CSP variables.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".