Enum sudoku_variants::error::SudokuError[][src]

pub enum SudokuError {
    InvalidDimensions,
    InvalidNumber,
    OutOfBounds,
    UnsatisfiableConstraint,
}

Miscellaneous errors that can occur on some methods in the root module. This does not exclude errors that occur when parsing Sudoku, see SudokuParseError for that.

Variants

InvalidDimensions

Indicates that the dimensions specified for a created Sudoku are invalid. This is the case if they are less than 1.

InvalidNumber

Indicates that some number is invalid for the size of the grid in question. This is the case if it is less than 1 or greater than the size.

OutOfBounds

Indicates that the specified coordinates (column and row) lie outside the Sudoku grid in question. This is the case if they are greater than or equal to the size.

UnsatisfiableConstraint

An error that is raised whenever it is attempted to generate a Sudoku with a constraint that is not satisfied by any Sudoku with the given parameters.

Trait Implementations

impl Debug for SudokuError[src]

impl Eq for SudokuError[src]

impl PartialEq<SudokuError> for SudokuError[src]

impl StructuralEq for SudokuError[src]

impl StructuralPartialEq for SudokuError[src]

Auto Trait Implementations

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, 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>,