Enum takuzu::GridSizeError[][src]

pub enum GridSizeError {
    EmptyGrid,
    NotASquare {
        line: usize,
        found: usize,
        expected: usize,
    },
    OddNumberSize(usize),
}

An error returned when the grid is not properly sized.

Variants

EmptyGrid

The grid is empty.

NotASquare

The grid is not a square.

Fields of NotASquare

line: usize

Line on which the error occured.

found: usize

Number of characters found.

expected: usize

Number of characters expected.

OddNumberSize(usize)

The size of the grid is an odd number. The field contains the number of lines in the grid.

Trait Implementations

impl Clone for GridSizeError[src]

impl Copy for GridSizeError[src]

impl Debug for GridSizeError[src]

impl Display for GridSizeError[src]

impl Eq for GridSizeError[src]

impl Error for GridSizeError[src]

impl From<GridSizeError> for GridParseError[src]

impl Hash for GridSizeError[src]

impl PartialEq<GridSizeError> for GridSizeError[src]

impl StructuralEq for GridSizeError[src]

impl StructuralPartialEq for GridSizeError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.