pub struct LiteralF64(pub f64);Expand description
f64 wrapper for total ordering and bit-pattern equality — bare f64 lacks Eq/Ord,
which would break the derived impls on Type. Construction must canonicalize -0.0 → 0.0;
NaN can’t appear from source literals so bit-pattern equality is safe.
Tuple Fields§
§0: f64Trait Implementations§
Source§impl Clone for LiteralF64
impl Clone for LiteralF64
impl Copy for LiteralF64
Source§impl Debug for LiteralF64
impl Debug for LiteralF64
Source§impl<'de> Deserialize<'de> for LiteralF64
impl<'de> Deserialize<'de> for LiteralF64
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LiteralF64
Source§impl Hash for LiteralF64
impl Hash for LiteralF64
Source§impl Ord for LiteralF64
impl Ord for LiteralF64
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LiteralF64
impl PartialEq for LiteralF64
Auto Trait Implementations§
impl Freeze for LiteralF64
impl RefUnwindSafe for LiteralF64
impl Send for LiteralF64
impl Sync for LiteralF64
impl Unpin for LiteralF64
impl UnsafeUnpin for LiteralF64
impl UnwindSafe for LiteralF64
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.