Enum sudoku::parse_errors::BlockFormatParseError
[−]
[src]
pub enum BlockFormatParseError { InvalidEntry(PubEntry), InvalidLineLength(u8), NotEnoughRows(u8), IncorrectFieldDelimiter, TooManyRows, MissingCommentDelimiter(u8), }
A structure representing an error caused when parsing the sudoku
Variants
InvalidEntry(PubEntry)
Non-digit, non-placeholder encountered. Field delimiters chars in unexpected places also cause this
InvalidLineLength(u8)
Line contains (>9 valid entries) or (<9 and no invalids) Returns index of row (0-8)
NotEnoughRows(u8)
Input ends with less than 9 rows. Returns number of rows encountered.
IncorrectFieldDelimiter
If field delimiter is in place after 3rd number in 1st row all other horizontal and vertical field delimiters must be present or this is emitted
TooManyRows
More than 9 lines are supplied and the 10th line is not pure whitespace
MissingCommentDelimiter(u8)
Non-digit, non-placeholder after completed line encountered but without space
Trait Implementations
impl Clone for BlockFormatParseError
[src]
fn clone(&self) -> BlockFormatParseError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for BlockFormatParseError
[src]
impl Eq for BlockFormatParseError
[src]
impl Hash for BlockFormatParseError
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for BlockFormatParseError
[src]
fn eq(&self, __arg_0: &BlockFormatParseError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BlockFormatParseError) -> bool
[src]
This method tests for !=
.