(&mut self, distance: f32, distance_squared: f32, idx: PalIndex)
| 81 | impl 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 | |
| 92 | pub(crate) struct Node { |