pub struct FloatKey(pub f64);Expand description
Wrapper for f64 that provides total ordering (for BTreeMap keys). NaN sorts last, consistent with IEEE 754 totalOrder.
Tuple Fields§
§0: f64Trait Implementations§
Source§impl Ord for FloatKey
impl Ord for FloatKey
Source§impl PartialOrd for FloatKey
impl PartialOrd for FloatKey
impl Copy for FloatKey
impl Eq for FloatKey
Auto Trait Implementations§
impl Freeze for FloatKey
impl RefUnwindSafe for FloatKey
impl Send for FloatKey
impl Sync for FloatKey
impl Unpin for FloatKey
impl UnsafeUnpin for FloatKey
impl UnwindSafe for FloatKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more