TODO test
(&mut self, row: usize, col: usize)
| 561 | |
| 562 | // TODO test |
| 563 | pub fn get_mut(&mut self, row: usize, col: usize) -> Option<&mut T> { |
| 564 | |
| 565 | match self.idx(row, col) { |
| 566 | None => None, |
| 567 | Some(p) => self.data.get_mut(p) |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | /// Returns the row at index `n` (starting at zero) in O(1). |
| 572 | /// |