[][src]Enum sudoku::parse_errors::BlockFormatParseError

pub enum BlockFormatParseError {
    InvalidEntry(PubEntry),
    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 PartialEq<BlockFormatParseError> for BlockFormatParseError
[src]

impl Clone for BlockFormatParseError
[src]

Performs copy-assignment from source. Read more

impl Eq for BlockFormatParseError
[src]

impl Debug for BlockFormatParseError
[src]

impl Hash for BlockFormatParseError
[src]

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

Auto Trait Implementations

impl Send for BlockFormatParseError

impl Sync for BlockFormatParseError

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]