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

Method visit

src/nearest.rs:83–89  ·  view source on GitHub ↗
(&mut self, distance: f32, distance_squared: f32, idx: PalIndex)

Source from the content-addressed store, hash-verified

81impl Visitor {
82 #[inline]
83 fn visit(&mut self, distance: f32, distance_squared: f32, idx: PalIndex) {
84 if distance_squared < self.distance_squared && self.exclude != Some(idx) {
85 self.distance = distance;
86 self.distance_squared = distance_squared;
87 self.idx = idx;
88 }
89 }
90}
91
92pub(crate) struct Node {

Callers 1

vp_search_nodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected