(&mut self, row: usize, col: usize)
| 283 | |
| 284 | #[inline] |
| 285 | pub fn get_mut(&mut self, row: usize, col: usize) -> Option<&mut T> { |
| 286 | if row < ROWS && col < COLS { |
| 287 | Some(&mut self.0[row][col]) |
| 288 | } else { |
| 289 | None |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | #[inline] |
| 294 | pub fn get_flat(&self, index: usize) -> Option<&T> { |
no outgoing calls