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

Method set_log_callback

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

Source from the content-addressed store, hash-verified

217 /// To share data with the callback, use `Arc` or `Atomic*` types and `move ||` closures.
218 #[inline]
219 pub fn set_log_callback<F: Fn(&Self, &str) + Send + Sync + 'static>(&mut self, callback: F) {
220 self.verbose_printf_flush();
221 self.log_callback = Some(Arc::new(callback));
222 }
223
224 /// Callback for flushing output (if you buffer messages, that's the time to flush those buffers)
225 #[inline]

Callers 2

liq_set_log_callbackFunction · 0.80
poke_itFunction · 0.80

Calls 2

newFunction · 0.85
verbose_printf_flushMethod · 0.80

Tested by 1

poke_itFunction · 0.64