Struct segment_tree::ops::MinIgnoreNaN
source · pub struct MinIgnoreNaN;
Expand description
Variant of Min
that considers NaN the largest value.
Trait Implementations§
source§impl Clone for MinIgnoreNaN
impl Clone for MinIgnoreNaN
source§fn clone(&self) -> MinIgnoreNaN
fn clone(&self) -> MinIgnoreNaN
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 MinIgnoreNaN
impl Debug for MinIgnoreNaN
source§impl Default for MinIgnoreNaN
impl Default for MinIgnoreNaN
source§fn default() -> MinIgnoreNaN
fn default() -> MinIgnoreNaN
Returns the “default value” for a type. Read more
source§impl Hash for MinIgnoreNaN
impl Hash for MinIgnoreNaN
source§impl Operation<f32> for MinIgnoreNaN
impl Operation<f32> for MinIgnoreNaN
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, the other is returned.
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
. Read moresource§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
. Read moresource§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
. Read moresource§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
. Read moresource§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
. Read moresource§impl Operation<f64> for MinIgnoreNaN
impl Operation<f64> for MinIgnoreNaN
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, the other is returned.
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
. Read moresource§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
. Read moresource§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
. Read moresource§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
. Read moresource§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
. Read moresource§impl Ord for MinIgnoreNaN
impl Ord for MinIgnoreNaN
source§fn cmp(&self, other: &MinIgnoreNaN) -> Ordering
fn cmp(&self, other: &MinIgnoreNaN) -> 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<MinIgnoreNaN> for MinIgnoreNaN
impl PartialEq<MinIgnoreNaN> for MinIgnoreNaN
source§fn eq(&self, other: &MinIgnoreNaN) -> bool
fn eq(&self, other: &MinIgnoreNaN) -> bool
source§impl PartialOrd<MinIgnoreNaN> for MinIgnoreNaN
impl PartialOrd<MinIgnoreNaN> for MinIgnoreNaN
source§fn partial_cmp(&self, other: &MinIgnoreNaN) -> Option<Ordering>
fn partial_cmp(&self, other: &MinIgnoreNaN) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more