Struct puzzle_solver::PuzzleSearch [] [src]

pub struct PuzzleSearch<'a> { /* fields omitted */ }

Intermediate puzzle search state.

Methods

impl<'a> PuzzleSearch<'a>
[src]

Check if the variable has been assigned to a value.

Get the value assigned to a variable, or None.

This should be used if the variable may potentially be unassigned. For example, when implementing constraints.

Get an iterator over the candidates to an unassigned variable.

Get the minimum and maximum values for variable.

Set a variable to a value.

Remove a single candidate from a variable.

Bound an variable to the given range.

Unify the "from" variable with the "to" variable.

Trait Implementations

impl<'a> Clone for PuzzleSearch<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for PuzzleSearch<'a>
[src]

Formats the value using the given formatter.

impl<'a> Index<VarToken> for PuzzleSearch<'a>
[src]

The returned type after indexing

Get the value assigned to a variable.

Panics

Panics if the variable has not been assigned.