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

Method progress

src/attr.rs:251–257  ·  view source on GitHub ↗
(&self, percent: f32)

Source from the content-addressed store, hash-verified

249 #[inline]
250 #[must_use]
251 pub(crate) fn progress(&self, percent: f32) -> bool {
252 if let Some(f) = &self.progress_callback {
253 f(percent) == ControlFlow::Break
254 } else {
255 false
256 }
257 }
258
259 #[inline(always)]
260 pub(crate) fn verbose_print(&self, msg: impl AsRef<str>) {

Callers 5

add_imageMethod · 0.80
quantize_internalMethod · 0.80
newMethod · 0.80
find_best_paletteFunction · 0.80
refine_paletteFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected