[][src]Struct sodoku::dec::Sodoku

pub struct Sodoku { /* fields omitted */ }

Implementations

impl Sodoku[src]

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

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

pub fn with_difficulty(score: u8) -> Self[src]

pub fn solve(&mut self)[src]

Solve the sodoku

Trait Implementations

impl Display for Sodoku[src]

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

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

type Output = u8

The returned type after indexing.

impl Index<usize> for Sodoku[src]

type Output = u8

The returned type after indexing.

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

impl IndexMut<usize> for Sodoku[src]

Auto Trait Implementations

impl RefUnwindSafe for Sodoku

impl Send for Sodoku

impl Sync for Sodoku

impl Unpin for Sodoku

impl UnwindSafe for Sodoku

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> 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.