(&mut self)
| 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) { |