pub struct Grid {
pub blank: Vec<String>,
pub solution: Vec<String>,
}Expand description
The puzzle grid containing both solution and blank layouts.
The grid is represented as vectors of strings, where each string is a row. Characters represent:
.= black/blocked square-= empty square (in blank grid)- Letters/numbers = cell content
Fields§
§blank: Vec<String>The blank grid as presented to the solver (with - for empty squares)
solution: Vec<String>The solution grid with all answers filled in
Trait Implementations§
impl StructuralPartialEq for Grid
Auto Trait Implementations§
impl Freeze for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnwindSafe for Grid
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