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

Method swap

src/pal.rs:309–312  ·  view source on GitHub ↗
(&mut self, a: usize, b: usize)

Source from the content-addressed store, hash-verified

307
308 #[cfg_attr(debug_assertions, track_caller)]
309 pub(crate) fn swap(&mut self, a: usize, b: usize) {
310 self.colors.swap(a, b);
311 self.pops.swap(a, b);
312 }
313
314 /// Also rounds the input pal
315 pub(crate) fn init_int_palette(&mut self, int_palette: &mut Palette, gamma: f64, posterize: u8) {

Callers 4

qsort_partitionFunction · 0.80
sort_paletteFunction · 0.80
vp_create_nodeFunction · 0.80
with_fixed_colorsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected