polars_utils::min_max

Trait MinMax

Source
pub trait MinMax: Sized {
    // Required methods
    fn nan_min_lt(&self, other: &Self) -> bool;
    fn nan_max_lt(&self, other: &Self) -> bool;

    // Provided methods
    fn min_propagate_nan(self, other: Self) -> Self { ... }
    fn max_propagate_nan(self, other: Self) -> Self { ... }
    fn min_ignore_nan(self, other: Self) -> Self { ... }
    fn max_ignore_nan(self, other: Self) -> Self { ... }
}

Required Methods§

Source

fn nan_min_lt(&self, other: &Self) -> bool

Source

fn nan_max_lt(&self, other: &Self) -> bool

Provided Methods§

Source

fn min_propagate_nan(self, other: Self) -> Self

Source

fn max_propagate_nan(self, other: Self) -> Self

Source

fn min_ignore_nan(self, other: Self) -> Self

Source

fn max_ignore_nan(self, other: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MinMax for &str

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for &[u8]

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for bool

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for char

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for f32

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

fn min_ignore_nan(self, other: Self) -> Self

Source§

fn max_ignore_nan(self, other: Self) -> Self

Source§

fn min_propagate_nan(self, other: Self) -> Self

Source§

fn max_propagate_nan(self, other: Self) -> Self

Source§

impl MinMax for f64

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

fn min_ignore_nan(self, other: Self) -> Self

Source§

fn max_ignore_nan(self, other: Self) -> Self

Source§

fn min_propagate_nan(self, other: Self) -> Self

Source§

fn max_propagate_nan(self, other: Self) -> Self

Source§

impl MinMax for i8

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for i16

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for i32

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for i64

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for i128

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for isize

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for u8

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for u16

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for u32

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for u64

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for u128

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for usize

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Source§

impl MinMax for String

Source§

fn nan_min_lt(&self, other: &Self) -> bool

Source§

fn nan_max_lt(&self, other: &Self) -> bool

Implementors§