[−][src]Struct sodoku::dec::Sodoku
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]
fn from(matrix: SodokuMatrix) -> Self
[src]
impl Index<[usize; 2]> for Sodoku
[src]
type Output = u8
The returned type after indexing.
fn index(&self, coords: [usize; 2]) -> &Self::Output
[src]
impl Index<usize> for Sodoku
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,