Struct sudoku_variants::solver::strategy::solvers::StrategicSolver[][src]

pub struct StrategicSolver<S: Strategy> { /* fields omitted */ }

A partial Solver which uses a Strategy to solve a Sudoku as well as possible. If it finds a contradiction, it will conclude that the Sudoku is impossible. If it cannot solve it, it will resort to returning Solution::Ambiguous. Only if the wrapped strategy is able to solve the Sudoku completely, a Solution::Unique variant is returned.

Implementations

impl<S: Strategy> StrategicSolver<S>[src]

pub fn new(strategy: S) -> StrategicSolver<S>[src]

Creates a new strategic solver that uses the given strategy to attempt to solve Sudoku.

Trait Implementations

impl<S: Strategy + Clone> Clone for StrategicSolver<S>[src]

impl<S: Strategy> Solver for StrategicSolver<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for StrategicSolver<S> where
    S: RefUnwindSafe

impl<S> Send for StrategicSolver<S> where
    S: Send

impl<S> Sync for StrategicSolver<S> where
    S: Sync

impl<S> Unpin for StrategicSolver<S> where
    S: Unpin

impl<S> UnwindSafe for StrategicSolver<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,