[][src]Struct sudoku_tui::sudoku::Sudoku

pub struct Sudoku {
    pub available: [[bool; 9]; 9],
    // some fields omitted
}

Fields

available: [[bool; 9]; 9]

Implementations

impl Sudoku[src]

pub fn from_matrix(matrix: SudokuMatrix) -> Self[src]

Convert from a [[u8; 9]; 9] matrix (array-of-array) to a Sudoku

pub fn finished(&self) -> bool[src]

pub fn conflict(&self, v: u8, coord: [usize; 2]) -> Option<[usize; 2]>[src]

Trait Implementations

impl Debug for Sudoku[src]

impl Display for Sudoku[src]

impl From<[[u8; 9]; 9]> for Sudoku[src]

impl Index<[usize; 2]> for Sudoku[src]

type Output = u8

The returned type after indexing.

impl IndexMut<[usize; 2]> for Sudoku[src]

Auto Trait Implementations

impl RefUnwindSafe for Sudoku

impl Send for Sudoku

impl Sync for Sudoku

impl Unpin for Sudoku

impl UnwindSafe for Sudoku

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> Erased for T

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

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

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.

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

impl<T> With for T