polars_arrow::legacy::kernels::rolling::no_nulls

Trait RollingAggWindowNoNulls

Source
pub trait RollingAggWindowNoNulls<'a, T: NativeType> {
    // Required methods
    fn new(
        slice: &'a [T],
        start: usize,
        end: usize,
        params: Option<RollingFnParams>,
    ) -> Self;
    unsafe fn update(&mut self, start: usize, end: usize) -> Option<T>;
}

Required Methods§

Source

fn new( slice: &'a [T], start: usize, end: usize, params: Option<RollingFnParams>, ) -> Self

Source

unsafe fn update(&mut self, start: usize, end: usize) -> Option<T>

Update and recompute the window

§Safety

start and end must be within the windows bounds

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.

Implementors§

Source§

impl<'a, T: NativeType + Float + Sum + AddAssign + SubAssign + Div<Output = T> + NumCast + One + Zero + Sub<Output = T>> RollingAggWindowNoNulls<'a, T> for QuantileWindow<'a, T>

Source§

impl<'a, T: NativeType + IsFloat + PartialOrd> RollingAggWindowNoNulls<'a, T> for MaxWindow<'a, T>

Source§

impl<'a, T: NativeType + IsFloat + PartialOrd> RollingAggWindowNoNulls<'a, T> for MinWindow<'a, T>

Source§

impl<'a, T: NativeType + IsFloat + Sum + AddAssign + SubAssign + Div<Output = T> + NumCast> RollingAggWindowNoNulls<'a, T> for MeanWindow<'a, T>

Source§

impl<'a, T: NativeType + IsFloat + Sum + AddAssign + SubAssign> RollingAggWindowNoNulls<'a, T> for SumWindow<'a, T>

Source§

impl<'a, T: NativeType + IsFloat + Float + Sum + AddAssign + SubAssign + Div<Output = T> + NumCast + One + Zero + PartialOrd + Sub<Output = T>> RollingAggWindowNoNulls<'a, T> for VarWindow<'a, T>