(&self, other: &Self)
| 124 | |
| 125 | impl Ord for HeapItem { |
| 126 | fn cmp(&self, other: &Self) -> std::cmp::Ordering { |
| 127 | // Reverse for min-heap (BinaryHeap is max-heap). |
| 128 | other |
| 129 | .dist |
| 130 | .partial_cmp(&self.dist) |
| 131 | .unwrap_or(std::cmp::Ordering::Equal) |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | /// Minimum distance from point to bbox (in degrees, approximate). |
no test coverage detected