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