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

Method iter_mut

src/pal.rs:302–306  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

300
301 #[inline(always)]
302 pub fn iter_mut(&mut self) -> impl Iterator<Item = (&mut f_pixel, &mut PalPop)> {
303 let c = &mut self.colors[..];
304 let pop = &mut self.pops[..c.len()];
305 c.iter_mut().zip(pop)
306 }
307
308 #[cfg_attr(debug_assertions, track_caller)]
309 pub(crate) fn swap(&mut self, a: usize, b: usize) {

Callers 15

prepare_sortMethod · 0.80
into_paletteMethod · 0.80
finalize_builderMethod · 0.80
newMethod · 0.80
sort_paletteFunction · 0.80
vp_create_nodeFunction · 0.80
r_callback_testFunction · 0.80
convert_row_to_fMethod · 0.80
contrast_mapsMethod · 0.80
init_int_paletteMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by 1

r_callback_testFunction · 0.64