Enum sudoku::ParseError
[−]
[src]
pub enum ParseError {
InvalidLineLength(u8),
InvalidNumber(u8, char),
NotEnoughRows,
}A structure representing an error caused when parsing the sudoku
Variants
InvalidLineLength(u8)Error caused when the lenght of the parsed line was not 9
InvalidNumber(u8, char)Error caused when a character is found which is not a number between 1 and 9 or a '_'
NotEnoughRowsError caused when the input has a number of rows lower than 9
Trait Implementations
impl Clone for ParseError[src]
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for ParseError[src]
impl Eq for ParseError[src]
impl Hash for ParseError[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the state provided.
impl PartialEq for ParseError[src]
fn eq(&self, __arg_0: &ParseError) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ParseError) -> bool
This method tests for !=.