pub fn cell<T>(&self, cell_id: T) -> CasesIter
        where CellId: FromIndex<T> {
        let case_id: fn(_) -> _ = CaseId;
        let range = self.cell_range(self.convert(cell_id));
        range.clone().map(case_id).zip(self.cases[range].iter())
    }
/// Returns iterator over cases/values of a cell.
///
/// Given a CellId (or something that can be converted to one), returns an iterator over the
/// cases that make up a particular cell, yielding items of type `(CaseId, &bool)`,
/// representing a particular case (i.e. position and value) and whether or not that case is
/// possible.
///
/// # Examples
///
/// ```rust
/// # use rusudoku::grid::*;
/// let mut grid = Grid::new(9);
/// let (case, value) = grid.cell((5, 0)).nth(3).unwrap();
/// assert!(*value); // The cell at 5,0 could be the value 4.
/// ```
Returns iterator over cases/values of a cell.
Given a CellId (or something that can be converted to one), returns an iterator over the
cases that make up a particular cell, yielding items of type `(CaseId, &bool)`,
representing a particular case  and whether or not that case is
possible.
Returns iterator over cases / values of a cell . Given a CellId ( or something that can be converted to one ) returns an iterator over the cases that make up a particular cell yielding items of type ` ( CaseId &bool ) ` representing a particular case and whether or not that case is possible .
pub fn cell<T>(&self, cell_id: T) -> CasesIter
        where CellId: FromIndex<T> {
        let case_id: fn(_) -> _ = CaseId;
        let range = self.cell_range(self.convert(cell_id));
        range.clone().map(case_id).zip(self.cases[range].iter())
    }
pub fn cell < T > ( & self , cell_id : T ) -> CasesIter where CellId : FromIndex < T > { let case_id : fn ( _ ) -> _ = CaseId ; let range = self . cell_range ( self . convert ( cell_id ) ) ; range . clone ( ) . map ( case_id ) . zip ( self . cases [ range ] . iter ( ) ) }
Returns iterator over cases/values of a cell.
Returns iterator over cases / values of a cell .
&self
cell_id
T
&self
cell_id
T
examples
None
use rusudoku::grid::*;
let mut grid = Grid::new(9);
let (case, value) = grid.cell((5, 0)).nth(3).unwrap();
assert!(*value); // The cell at 5,0 could be the value 4.
let mut grid = Grid :: new ( 9 ) ; let ( case value ) = grid . cell (( 5 0 )) . nth ( 3 ) . unwrap () ; assert! ( * value ) ; // The cell at 5 0 could be the value 4 .