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

Method chunks

src/seacow.rs:187–192  ·  view source on GitHub ↗
(&mut self, chunk_size: usize)

Source from the content-addressed store, hash-verified

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 {
189 width: self.width,
190 rows: MutCow::Borrowed(chunk),
191 })
192 }
193
194 #[must_use]
195 pub(crate) fn len(&mut self) -> usize {

Callers 2

for_pixelsMethod · 0.80
remap_to_palette_floydFunction · 0.80

Calls 1

borrow_mutMethod · 0.80

Tested by

no test coverage detected