polars_compute::min_max

Trait MinMaxKernel

Source
pub trait MinMaxKernel {
    type Scalar<'a>: MinMax
       where Self: 'a;

    // Required methods
    fn min_ignore_nan_kernel(&self) -> Option<Self::Scalar<'_>>;
    fn max_ignore_nan_kernel(&self) -> Option<Self::Scalar<'_>>;
    fn min_propagate_nan_kernel(&self) -> Option<Self::Scalar<'_>>;
    fn max_propagate_nan_kernel(&self) -> Option<Self::Scalar<'_>>;

    // Provided methods
    fn min_max_ignore_nan_kernel(
        &self,
    ) -> Option<(Self::Scalar<'_>, Self::Scalar<'_>)> { ... }
    fn min_max_propagate_nan_kernel(
        &self,
    ) -> Option<(Self::Scalar<'_>, Self::Scalar<'_>)> { ... }
}
Expand description

Low-level min/max kernel.

Required Associated Types§

Source

type Scalar<'a>: MinMax where Self: 'a

Required Methods§

Provided Methods§

Source

fn min_max_ignore_nan_kernel( &self, ) -> Option<(Self::Scalar<'_>, Self::Scalar<'_>)>

Source

fn min_max_propagate_nan_kernel( &self, ) -> Option<(Self::Scalar<'_>, Self::Scalar<'_>)>

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 MinMaxKernel for BooleanArray

Source§

impl MinMaxKernel for BinaryViewArray

Source§

impl MinMaxKernel for Utf8ViewArray

Source§

impl<O: Offset> MinMaxKernel for BinaryArray<O>

Source§

impl<O: Offset> MinMaxKernel for Utf8Array<O>

Source§

impl<T: NativeType + MinMax + NotSimdPrimitive> MinMaxKernel for [T]

Source§

type Scalar<'a> = T

Source§

fn min_ignore_nan_kernel(&self) -> Option<Self::Scalar<'_>>

Source§

fn max_ignore_nan_kernel(&self) -> Option<Self::Scalar<'_>>

Source§

fn min_max_ignore_nan_kernel( &self, ) -> Option<(Self::Scalar<'_>, Self::Scalar<'_>)>

Source§

fn min_propagate_nan_kernel(&self) -> Option<Self::Scalar<'_>>

Source§

fn max_propagate_nan_kernel(&self) -> Option<Self::Scalar<'_>>

Source§

fn min_max_propagate_nan_kernel( &self, ) -> Option<(Self::Scalar<'_>, Self::Scalar<'_>)>

Source§

impl<T: NativeType + MinMax + NotSimdPrimitive> MinMaxKernel for PrimitiveArray<T>

Source§

type Scalar<'a> = T

Source§

fn min_ignore_nan_kernel(&self) -> Option<Self::Scalar<'_>>

Source§

fn max_ignore_nan_kernel(&self) -> Option<Self::Scalar<'_>>

Source§

fn min_max_ignore_nan_kernel( &self, ) -> Option<(Self::Scalar<'_>, Self::Scalar<'_>)>

Source§

fn min_propagate_nan_kernel(&self) -> Option<Self::Scalar<'_>>

Source§

fn max_propagate_nan_kernel(&self) -> Option<Self::Scalar<'_>>

Source§

fn min_max_propagate_nan_kernel( &self, ) -> Option<(Self::Scalar<'_>, Self::Scalar<'_>)>

Implementors§