Enum sudoku::parse_errors::BlockParseError [−][src]
pub enum BlockParseError { InvalidEntry(InvalidEntry), InvalidLineLength(u8), NotEnoughRows(u8), IncorrectFieldDelimiter, TooManyRows, MissingCommentDelimiter(u8), }
A structure representing an error caused when parsing the sudoku
Variants
InvalidEntry(InvalidEntry)
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 BlockParseError
[src]
impl Clone for BlockParseError
fn clone(&self) -> BlockParseError
[src]
fn clone(&self) -> BlockParseError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for BlockParseError
[src]
impl Debug for BlockParseError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for BlockParseError
[src]
impl Eq for BlockParseError
impl Hash for BlockParseError
[src]
impl Hash for BlockParseError
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for BlockParseError
[src]
impl PartialEq for BlockParseError
fn eq(&self, other: &BlockParseError) -> bool
[src]
fn eq(&self, other: &BlockParseError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BlockParseError) -> bool
[src]
fn ne(&self, other: &BlockParseError) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for BlockParseError
impl Send for BlockParseError
impl Sync for BlockParseError
impl Sync for BlockParseError