Hello there!
I have some old application in Rust which have this code:
let pal_q = image::math::nq::NeuQuant::new(1, PAL.len(), &PAL);
let mut ret = imageops::colorops::index_colors(&mut imgbuf, &pal_q);
image::math::nq::NeuQuant
is deprecated, ok, using color_quant::NeuQuant
and got error:
let pal_q = color_quant::NeuQuant::new(1, PAL.len(), &PAL);
let mut ret = imageops::colorops::index_colors(&mut imgbuf, &pal_q);
error[E0277]: the trait bound
color_quant::NeuQuant: ColorMap
is not satisfied
What happening?