1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Ordered float wrapper for use in `BinaryHeap`.
//!
//! Provides IEEE 754 total ordering for f32 values, including proper NaN handling.
//! Uses `f32::total_cmp` which defines: -NaN < -∞ < ... < -0 < +0 < ... < +∞ < +NaN
use Ordering;
/// Wrapper for f32 to implement Ord for `BinaryHeap`.
///
/// Uses `f32::total_cmp` for IEEE 754 total ordering, ensuring Ord/Eq/PartialEq
/// consistency even with NaN values. This prevents heap corruption during HNSW search.
pub ;