Enum sudokugen::board::BoardSize[][src]

pub enum BoardSize {
    FourByFour,
    NineByNine,
    SixteenBySixteen,
}

Represents the size of the board that sudukogen can work with. Currently only 4x4, 9x9, and 16x16 boards are allowed.

Variants

FourByFour

A board with 16 cells, in a 4 by 4 square

NineByNine

A board with 81 cells, in a 9 by 9 square

SixteenBySixteen

A board with 337 cells, in a 16 by 16 square

Implementations

impl BoardSize[src]

pub fn get_base_size(&self) -> usize[src]

A sudoku board is a square of N by N squares, each of them composed of N by N cells the base size of a board is N. For instance in a 9 by 9 board, composed of 3 by 3 squares, each of them composed of 3 by 3 cells, the base size is 3.

Trait Implementations

impl Clone for BoardSize[src]

impl Copy for BoardSize[src]

impl Debug for BoardSize[src]

impl Eq for BoardSize[src]

impl PartialEq<BoardSize> for BoardSize[src]

impl StructuralEq for BoardSize[src]

impl StructuralPartialEq for BoardSize[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> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,