Trait polars_compute::min_max::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<'_>)> { ... }
}

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<'_>)>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MinMaxKernel for BooleanArray

source§

impl MinMaxKernel for BinaryViewArray

§

type Scalar<'a> = &'a [u8]

source§

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

source§

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

source§

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

source§

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

source§

impl MinMaxKernel for Utf8ViewArray

source§

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

source§

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

Implementors§