pub struct Solution {
pub board: Board,
pub solve_path: SolvePath,
}
Expand description
Solved board and its solution path.
Most of the time, users just want to see the solved board, but this struct also provides the sequence of moves that led to the solution, which can be useful for debugging or understanding the solving process.
Fields§
§board: Board
The solved Sudoku board, represented as a 2D array.
solve_path: SolvePath
The sequence of moves (row, col, value) made to reach the solution.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more