pub struct HashF64(/* private fields */);
Expand description
This is a f64 wrapper suitable for use as a key in a (Hash)Map, since NaNs compare equal to
each other, so it can implement Eq and Hash. HashF64(-0.0) == HashF64(0.0)
.
Trait Implementations§
impl Eq for HashF64
Auto Trait Implementations§
impl Freeze for HashF64
impl RefUnwindSafe for HashF64
impl Send for HashF64
impl Sync for HashF64
impl Unpin for HashF64
impl UnwindSafe for HashF64
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