1#[derive(Clone, Copy)]
2pub struct GridPbit {
3 row: usize,
4 col: usize,
5}
6
7impl GridPbit {
8 pub fn new(row: usize, col: usize) -> GridPbit {
9 GridPbit { row, col }
10 }
11
12 pub fn coordinates(&self) -> (usize, usize) {
13 (self.row, self.col)
14 }
15}