use std::fmt;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct Cell {
pub column: usize,
pub row: usize,
}
impl Cell {
pub const fn new(column: usize, row: usize) -> Self {
Self { column, row }
}
}
impl fmt::Display for Cell {
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(formatter, "(column {}, row {})", self.column, self.row)
}
}