Enum sudoku_variants::error::SudokuParseError [−][src]
An enumeration of the errors that may occur when parsing a Sudoku or SudokuGrid.
Variants
Indicates that the code has the wrong number of parts, which are separated by semicolons. The code should have two parts: dimensions and cells (separated by ‘;’), so if the code does not contain exactly one semicolon, this error will be returned.
Indicates that the number of cells (which are separated by commas) does not equal the number deduced from the dimensions.
Indicates that the dimensions have the wrong format. They should be of
the form <block_width>x<block_height>
, so if the amount of ’x’s in
the dimension string is not exactly one, this error will be raised.
Indicates that the provided dimensions are invalid (i.e. at least one is zero).
Indicates that one of the numbers (dimension or cell content) could not be parsed.
Indicates that a cell is filled with an invalid number (0 or more than the grid size).
Trait Implementations
impl Debug for SudokuParseError
[src]
impl Eq for SudokuParseError
[src]
impl From<ParseIntError> for SudokuParseError
[src]
fn from(_: ParseIntError) -> Self
[src]
impl PartialEq<SudokuParseError> for SudokuParseError
[src]
fn eq(&self, other: &SudokuParseError) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SudokuParseError
[src]
impl StructuralPartialEq for SudokuParseError
[src]
Auto Trait Implementations
impl RefUnwindSafe for SudokuParseError
impl Send for SudokuParseError
impl Sync for SudokuParseError
impl Unpin for SudokuParseError
impl UnwindSafe for SudokuParseError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,