pub struct TotalF32(pub f32);Expand description
f32 wrapper with a total order (via total_cmp) for callers ranking by a plain fraction
(e.g. a 0..=1 quality score) that is never NaN in practice but has no Ord impl of its own.
Tuple Fields§
§0: f32Trait Implementations§
impl Copy for TotalF32
impl Eq for TotalF32
Source§impl Ord for TotalF32
impl Ord for TotalF32
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 PartialOrd for TotalF32
impl PartialOrd for TotalF32
impl StructuralPartialEq for TotalF32
Auto Trait Implementations§
impl Freeze for TotalF32
impl RefUnwindSafe for TotalF32
impl Send for TotalF32
impl Sync for TotalF32
impl Unpin for TotalF32
impl UnsafeUnpin for TotalF32
impl UnwindSafe for TotalF32
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