Gets a cell without bounds checks. # Safety Caller must ensure `row < ROWS` and `col < COLS`.
(&self, row: usize, col: usize)
| 309 | /// |
| 310 | /// Caller must ensure `row < ROWS` and `col < COLS`. |
| 311 | pub unsafe fn get_unchecked(&self, row: usize, col: usize) -> &T { |
| 312 | debug_assert!(Self::in_bounds(row, col)); |
| 313 | // SAFETY: caller must ensure row < ROWS and col < COLS. |
| 314 | unsafe { self.0.get_unchecked(row).get_unchecked(col) } |
| 315 | } |
| 316 | |
| 317 | #[inline] |
| 318 | /// Gets a mutable cell without bounds checks. |
no outgoing calls