pub enum RustokuError {
InvalidClueCount,
InvalidInputLength,
InvalidInputCharacter,
DuplicateValues,
GenerateFailure,
}
Expand description
Represents the types of errors that can occur while working with Sudoku puzzles.
Variants§
InvalidClueCount
The number of clues provided for puzzle generation is not between 17 and 81.
InvalidInputLength
The input string does not contain exactly 81 characters.
InvalidInputCharacter
The input string contains characters other than digits 0-9
or .
or _
.
DuplicateValues
The initial board contains duplicate values in rows, columns, or 3x3 boxes.
GenerateFailure
The puzzle generation process failed.
Trait Implementations§
Source§impl Debug for RustokuError
impl Debug for RustokuError
Source§impl Display for RustokuError
impl Display for RustokuError
Source§impl Error for RustokuError
impl Error for RustokuError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RustokuError
impl RefUnwindSafe for RustokuError
impl Send for RustokuError
impl Sync for RustokuError
impl Unpin for RustokuError
impl UnwindSafe for RustokuError
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