#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CellIndex {
pub row: usize,
pub column: usize,
}
impl From<(usize, usize)> for CellIndex {
// column then row ordering in tuple to align with x/y so it's easier to remember
fn from(value: (usize, usize)) -> Self {
Self {
column: value.0,
row: value.1,
}
}
}