pub struct FloatValue(/* private fields */);Expand description
Wrapper around f64 that stores raw bytes for deterministic equality and hashing. This allows use in HashMap keys and ensures NaN == NaN (bitwise comparison).
Implementations§
Trait Implementations§
Source§impl Clone for FloatValue
impl Clone for FloatValue
Source§fn clone(&self) -> FloatValue
fn clone(&self) -> FloatValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FloatValue
Source§impl Debug for FloatValue
impl Debug for FloatValue
Source§impl Display for FloatValue
impl Display for FloatValue
impl Eq for FloatValue
Source§impl From<FloatValue> for f64
impl From<FloatValue> for f64
Source§fn from(value: FloatValue) -> Self
fn from(value: FloatValue) -> Self
Converts to this type from the input type.
Source§impl From<f64> for FloatValue
impl From<f64> for FloatValue
Source§impl Hash for FloatValue
impl Hash for FloatValue
Source§impl PartialEq for FloatValue
impl PartialEq for FloatValue
Auto Trait Implementations§
impl Freeze for FloatValue
impl RefUnwindSafe for FloatValue
impl Send for FloatValue
impl Sync for FloatValue
impl Unpin for FloatValue
impl UnsafeUnpin for FloatValue
impl UnwindSafe for FloatValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.