(&self, other: &Self)
| 106 | |
| 107 | impl Ord for HeapEntry { |
| 108 | fn cmp(&self, other: &Self) -> std::cmp::Ordering { |
| 109 | // Max-heap by distance (NaN treated as largest). |
| 110 | self.dist |
| 111 | .partial_cmp(&other.dist) |
| 112 | .unwrap_or(std::cmp::Ordering::Equal) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | /// Two-stage Matryoshka search. |
no test coverage detected