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

Non-digit, non-placeholder encountered. Field delimiters chars in unexpected places also cause this

Line contains (>9 valid entries) or (<9 and no invalids) Returns index of row (0-8)

Input ends with less than 9 rows. Returns number of rows encountered.

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

More than 9 lines are supplied and the 10th line is not pure whitespace

Non-digit, non-placeholder after completed line encountered but without space

Trait Implementations

impl Clone for BlockParseError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for BlockParseError
[src]

Formats the value using the given formatter. Read more

impl Eq for BlockParseError
[src]

impl Hash for BlockParseError
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for BlockParseError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations