#[repr(transparent)]pub struct SerializableEqFloat(pub OrderedFloat<f64>);Expand description
A floating-point number that can be ordered and compared using Eq.
It is not compliant to IEEE standard, and NaN is considered greater than everything and equal to itself.
Also, this type is serializable using fp-bindgen, transparently to the underlying f64 primitive.
Tuple Fields§
§0: OrderedFloat<f64>Trait Implementations§
source§impl Clone for SerializableEqFloat
impl Clone for SerializableEqFloat
source§fn clone(&self) -> SerializableEqFloat
fn clone(&self) -> SerializableEqFloat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SerializableEqFloat
impl Debug for SerializableEqFloat
source§impl Default for SerializableEqFloat
impl Default for SerializableEqFloat
source§fn default() -> SerializableEqFloat
fn default() -> SerializableEqFloat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SerializableEqFloat
impl<'de> Deserialize<'de> for SerializableEqFloat
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
source§impl PartialEq for SerializableEqFloat
impl PartialEq for SerializableEqFloat
source§fn eq(&self, other: &SerializableEqFloat) -> bool
fn eq(&self, other: &SerializableEqFloat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SerializableEqFloat
impl Serialize for SerializableEqFloat
impl Eq for SerializableEqFloat
impl StructuralPartialEq for SerializableEqFloat
Auto Trait Implementations§
impl Freeze for SerializableEqFloat
impl RefUnwindSafe for SerializableEqFloat
impl Send for SerializableEqFloat
impl Sync for SerializableEqFloat
impl Unpin for SerializableEqFloat
impl UnwindSafe for SerializableEqFloat
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