MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / rows_mut

Method rows_mut

src/seacow.rs:180–185  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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 {

Callers 2

remap_to_paletteFunction · 0.80
remap_to_palette_floydFunction · 0.80

Calls 1

borrow_mutMethod · 0.80

Tested by

no test coverage detected