(&self, other: &Self)
| 80 | |
| 81 | impl Ord for ScoredRow { |
| 82 | fn cmp(&self, other: &Self) -> Ordering { |
| 83 | // Reverse ordering for min-heap |
| 84 | // (BinaryHeap is max-heap by default, we want min-heap) |
| 85 | other |
| 86 | .score |
| 87 | .partial_cmp(&self.score) |
| 88 | .unwrap_or(Ordering::Equal) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | impl PartialOrd for ScoredRow { |
no test coverage detected