pub trait NumericReduction:
Send
+ Sync
+ 'static {
type Dtype: PolarsNumericType;
// Required methods
fn init() -> <Self::Dtype as PolarsNumericType>::Native;
fn combine(
a: <Self::Dtype as PolarsNumericType>::Native,
b: <Self::Dtype as PolarsNumericType>::Native,
) -> <Self::Dtype as PolarsNumericType>::Native;
fn reduce_ca(
ca: &ChunkedArray<Self::Dtype>,
) -> Option<<Self::Dtype as PolarsNumericType>::Native>;
}
Required Associated Types§
type Dtype: PolarsNumericType
Required Methods§
fn init() -> <Self::Dtype as PolarsNumericType>::Native
fn combine( a: <Self::Dtype as PolarsNumericType>::Native, b: <Self::Dtype as PolarsNumericType>::Native, ) -> <Self::Dtype as PolarsNumericType>::Native
fn reduce_ca( ca: &ChunkedArray<Self::Dtype>, ) -> Option<<Self::Dtype as PolarsNumericType>::Native>
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.