Struct surgeshaper_asym::imports::imports::FloatOrd [−]
#[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
Trait Implementations
impl PartialOrd<FloatOrd<f32>> for FloatOrd<f32>
impl PartialOrd<FloatOrd<f32>> for FloatOrd<f32>
pub fn partial_cmp(&self, other: &FloatOrd<f32>) -> Option<Ordering>
pub fn partial_cmp(&self, other: &FloatOrd<f32>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl PartialOrd<FloatOrd<f64>> for FloatOrd<f64>
impl PartialOrd<FloatOrd<f64>> for FloatOrd<f64>
pub fn partial_cmp(&self, other: &FloatOrd<f64>) -> Option<Ordering>
pub fn partial_cmp(&self, other: &FloatOrd<f64>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for FloatOrd<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for FloatOrd<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more