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

Method clone

src/quant.rs:315–328  ·  view source on GitHub ↗

It will be without a progress callback

(&self)

Source from the content-addressed store, hash-verified

313impl Clone for QuantizationResult {
314 /// It will be without a progress callback
315 fn clone(&self) -> Self {
316 Self {
317 remapped: self.remapped.clone(),
318 palette: self.palette.clone(),
319 progress_callback: None,
320 int_palette: self.int_palette.clone(),
321 dither_level: self.dither_level,
322 gamma: self.gamma,
323 palette_error: self.palette_error,
324 min_posterization_output: self.min_posterization_output,
325 use_dither_map: self.use_dither_map,
326 single_threaded_dithering: self.single_threaded_dithering,
327 }
328 }
329}
330
331fn sort_palette(attr: &Attributes, palette: &mut PalF) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected