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

Method set_progress_callback

src/attr.rs:236–238  ·  view source on GitHub ↗
(&mut self, callback: F)

Source from the content-addressed store, hash-verified

234 /// To share data with the callback, use `Arc` or `Atomic*` types and `move ||` closures.
235 #[inline]
236 pub fn set_progress_callback<F: Fn(f32) -> ControlFlow + Send + Sync + 'static>(&mut self, callback: F) {
237 self.progress_callback = Some(Arc::new(callback));
238 }
239
240 /// Move transparent color to the last entry in the palette
241 ///

Callers 3

poke_itFunction · 0.45

Calls 1

newFunction · 0.85

Tested by 1

poke_itFunction · 0.36