#[repr(transparent)]pub struct FloatOrd<T>(pub T);
Expand description
A wrapper for floats, that implements total equality and ordering and hashing.
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
source§impl Ord for FloatOrd<f32>
impl Ord for FloatOrd<f32>
source§impl Ord for FloatOrd<f64>
impl Ord for FloatOrd<f64>
source§impl PartialOrd for FloatOrd<f32>
impl PartialOrd for FloatOrd<f32>
source§impl PartialOrd for FloatOrd<f64>
impl PartialOrd for FloatOrd<f64>
impl<T: Copy> Copy for FloatOrd<T>
impl Eq for FloatOrd<f32>
impl Eq for FloatOrd<f64>
Auto Trait Implementations§
impl<T> Freeze for FloatOrd<T>where
T: Freeze,
impl<T> RefUnwindSafe for FloatOrd<T>where
T: RefUnwindSafe,
impl<T> Send for FloatOrd<T>where
T: Send,
impl<T> Sync for FloatOrd<T>where
T: Sync,
impl<T> Unpin for FloatOrd<T>where
T: Unpin,
impl<T> UnwindSafe for FloatOrd<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)