Struct puzzle_solver::constraint::AllDifferent [] [src]

pub struct AllDifferent { /* fields omitted */ }

Methods

impl AllDifferent
[src]

Allocate a new All Different constraint.

Examples

let mut send_more_money = puzzle_solver::Puzzle::new();
let vars = send_more_money.new_vars_with_candidates_1d(8,
        &[0,1,2,3,4,5,6,7,8,9]);

puzzle_solver::constraint::AllDifferent::new(&vars);

Trait Implementations

impl Constraint for AllDifferent
[src]

An iterator over the variables that are involved in the constraint.

Applied after a variable has been assigned.

Applied after a variable's candidates has been modified.

Substitute the "from" variable with the "to" variable. Read more