pub struct MinTakeNaN;
Expand description
Variant of Min
that considers NaN the smallest value.
Trait Implementations§
Source§impl Clone for MinTakeNaN
impl Clone for MinTakeNaN
Source§fn clone(&self) -> MinTakeNaN
fn clone(&self) -> MinTakeNaN
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 MinTakeNaN
impl Debug for MinTakeNaN
Source§impl Default for MinTakeNaN
impl Default for MinTakeNaN
Source§fn default() -> MinTakeNaN
fn default() -> MinTakeNaN
Returns the “default value” for a type. Read more
Source§impl Hash for MinTakeNaN
impl Hash for MinTakeNaN
Source§impl Operation<f32> for MinTakeNaN
impl Operation<f32> for MinTakeNaN
Source§fn combine(&self, a: &f32, b: &f32) -> f32
fn combine(&self, a: &f32, b: &f32) -> f32
Returns the smallest of the two values.
If either argument is NaN, this method returns NaN.
Source§fn combine_mut(&self, a: &mut N, b: &N)
fn combine_mut(&self, a: &mut N, b: &N)
Replace the value in
a
with combine(a, b)
. This function exists to allow
certain optimizations and by default simply calls combine
.Source§fn combine_mut2(&self, a: &N, b: &mut N)
fn combine_mut2(&self, a: &N, b: &mut N)
Replace the value in
b
with combine(a, b)
. This function exists to allow
certain optimizations and by default simply calls combine
.Source§fn combine_left(&self, a: N, b: &N) -> N
fn combine_left(&self, a: N, b: &N) -> N
Must return the same as
combine
. This function exists to allow certain
optimizations and by default simply calls combine_mut
.Source§fn combine_right(&self, a: &N, b: N) -> N
fn combine_right(&self, a: &N, b: N) -> N
Must return the same as
combine
. This function exists to allow certain
optimizations and by default simply calls combine_mut2
.Source§fn combine_both(&self, a: N, b: N) -> N
fn combine_both(&self, a: N, b: N) -> N
Must return the same as
combine
. This function exists to allow certain
optimizations and by default simply calls combine_left
.Source§impl Operation<f64> for MinTakeNaN
impl Operation<f64> for MinTakeNaN
Source§fn combine(&self, a: &f64, b: &f64) -> f64
fn combine(&self, a: &f64, b: &f64) -> f64
Returns the smallest of the two values.
If either argument is NaN, this method returns NaN.
Source§fn combine_mut(&self, a: &mut N, b: &N)
fn combine_mut(&self, a: &mut N, b: &N)
Replace the value in
a
with combine(a, b)
. This function exists to allow
certain optimizations and by default simply calls combine
.Source§fn combine_mut2(&self, a: &N, b: &mut N)
fn combine_mut2(&self, a: &N, b: &mut N)
Replace the value in
b
with combine(a, b)
. This function exists to allow
certain optimizations and by default simply calls combine
.Source§fn combine_left(&self, a: N, b: &N) -> N
fn combine_left(&self, a: N, b: &N) -> N
Must return the same as
combine
. This function exists to allow certain
optimizations and by default simply calls combine_mut
.Source§fn combine_right(&self, a: &N, b: N) -> N
fn combine_right(&self, a: &N, b: N) -> N
Must return the same as
combine
. This function exists to allow certain
optimizations and by default simply calls combine_mut2
.Source§fn combine_both(&self, a: N, b: N) -> N
fn combine_both(&self, a: N, b: N) -> N
Must return the same as
combine
. This function exists to allow certain
optimizations and by default simply calls combine_left
.Source§impl Ord for MinTakeNaN
impl Ord for MinTakeNaN
Source§fn cmp(&self, other: &MinTakeNaN) -> Ordering
fn cmp(&self, other: &MinTakeNaN) -> Ordering
1.21.0 · 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 MinTakeNaN
impl PartialEq for MinTakeNaN
Source§impl PartialOrd for MinTakeNaN
impl PartialOrd for MinTakeNaN
impl Commutative<f32> for MinTakeNaN
impl Commutative<f64> for MinTakeNaN
impl Copy for MinTakeNaN
impl Eq for MinTakeNaN
impl StructuralPartialEq for MinTakeNaN
Auto Trait Implementations§
impl Freeze for MinTakeNaN
impl RefUnwindSafe for MinTakeNaN
impl Send for MinTakeNaN
impl Sync for MinTakeNaN
impl Unpin for MinTakeNaN
impl UnwindSafe for MinTakeNaN
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