pub enum SudokuError {
InvalidDimensions,
InvalidNumber,
OutOfBounds,
UnsatisfiableConstraint,
}
Expand description
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§
Source§impl Debug for SudokuError
impl Debug for SudokuError
Source§impl PartialEq for SudokuError
impl PartialEq for SudokuError
impl Eq for SudokuError
impl StructuralPartialEq for SudokuError
Auto Trait Implementations§
impl Freeze for SudokuError
impl RefUnwindSafe for SudokuError
impl Send for SudokuError
impl Sync for SudokuError
impl Unpin for SudokuError
impl UnwindSafe for SudokuError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more