pub struct Candidates { /* private fields */ }
Expand description
Represents the candidates cache for a Rustoku puzzle.
This struct holds a 9x9 grid of candidate masks for each cell in the Rustoku board. Each cell’s candidates are represented as a bitmask, where each bit corresponds to a number from 1 to 9. A bit set to 1 indicates that the corresponding number is a candidate for that cell. This struct provides methods to get and set candidate masks for specific cells, as well as to update the candidates based on the current state of the board and masks.
Implementations§
Source§impl Candidates
impl Candidates
Trait Implementations§
Source§impl Clone for Candidates
impl Clone for Candidates
Source§fn clone(&self) -> Candidates
fn clone(&self) -> Candidates
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Candidates
impl Debug for Candidates
Source§impl PartialEq for Candidates
impl PartialEq for Candidates
impl Copy for Candidates
impl Eq for Candidates
impl StructuralPartialEq for Candidates
Auto Trait Implementations§
impl Freeze for Candidates
impl RefUnwindSafe for Candidates
impl Send for Candidates
impl Sync for Candidates
impl Unpin for Candidates
impl UnwindSafe for Candidates
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