(&mut self)
| 178 | } |
| 179 | |
| 180 | pub fn rows_mut(&mut self) -> impl Iterator<Item = &mut [T]> + Send { |
| 181 | let width = self.width; |
| 182 | self.rows.borrow_mut().iter().map(move |row| { |
| 183 | unsafe { std::slice::from_raw_parts_mut(row.0, width) } |
| 184 | }) |
| 185 | } |
| 186 | |
| 187 | pub(crate) fn chunks(&mut self, chunk_size: usize) -> impl Iterator<Item = RowBitmapMut<'_, T>> { |
| 188 | self.rows.borrow_mut().chunks_mut(chunk_size).map(|chunk| RowBitmapMut { |
no test coverage detected