pub struct Nonogram<T> { /* private fields */ }
Expand description
A nonogram with a fix size containing some Cells.
T
is the type used to represent colors.
use nonogram_rs::{Nonogram, Cell};
let mut n: Nonogram<u8> = Nonogram::new(5, 5);
n[(0, 3)] = Cell::Space;
n[(1, 0)] = Cell::Box { color: 0 };
n[(4, 2)] = Cell::Box { color: 1 };
let value = n[(0, 3)];
Implementations§
Trait Implementations§
impl<T> StructuralPartialEq for Nonogram<T>
Auto Trait Implementations§
impl<T> Freeze for Nonogram<T>
impl<T> RefUnwindSafe for Nonogram<T>where
T: RefUnwindSafe,
impl<T> Send for Nonogram<T>where
T: Send,
impl<T> Sync for Nonogram<T>where
T: Sync,
impl<T> Unpin for Nonogram<T>where
T: Unpin,
impl<T> UnwindSafe for Nonogram<T>where
T: UnwindSafe,
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