(&mut self, field_idx: usize, row_idx: usize, pos: u32)
| 53 | } |
| 54 | |
| 55 | fn try_set(&mut self, field_idx: usize, row_idx: usize, pos: u32) -> Option<()> { |
| 56 | let idx = field_idx |
| 57 | .checked_mul(self.row_count)? |
| 58 | .checked_add(row_idx)?; |
| 59 | *self.data.get_mut(idx)? = pos; |
| 60 | Some(()) |
| 61 | } |
| 62 | |
| 63 | fn set(&mut self, field_idx: usize, row_idx: usize, pos: u32) { |
| 64 | self.data[field_idx * self.row_count + row_idx] = pos; |
no test coverage detected