pub struct OrderedF64(pub f64);Expand description
A total-ordering, hashable f64 wrapper for use as an index label
(br-frankenpandas-i10en). -0.0 is normalized to +0.0 and all NaNs
collapse to one bucket, so Eq/Hash/Ord are mutually consistent
(a == b implies cmp == Equal) — matching pandas’ Float64Index. NaN sorts
after every finite value (pandas NaN-last).
Tuple Fields§
§0: f64Trait Implementations§
Source§impl Clone for OrderedF64
impl Clone for OrderedF64
Source§fn clone(&self) -> OrderedF64
fn clone(&self) -> OrderedF64
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 OrderedF64
Source§impl Debug for OrderedF64
impl Debug for OrderedF64
Source§impl<'de> Deserialize<'de> for OrderedF64
impl<'de> Deserialize<'de> for OrderedF64
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 OrderedF64
Source§impl Hash for OrderedF64
impl Hash for OrderedF64
Source§impl Ord for OrderedF64
impl Ord for OrderedF64
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
Source§impl PartialEq for OrderedF64
impl PartialEq for OrderedF64
Auto Trait Implementations§
impl Freeze for OrderedF64
impl RefUnwindSafe for OrderedF64
impl Send for OrderedF64
impl Sync for OrderedF64
impl Unpin for OrderedF64
impl UnsafeUnpin for OrderedF64
impl UnwindSafe for OrderedF64
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