polars_arrow::legacy::kernels::rolling::nulls

Trait RollingAggWindowNulls

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

Required Methods§

Source

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

§Safety

start and end must be in bounds for slice and validity

Source

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

§Safety

start and end must be in bounds of slice and bitmap

Source

fn is_valid(&self, min_periods: usize) -> bool

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 + IsFloat + PartialOrd> RollingAggWindowNulls<'a, T> for MaxWindow<'a, T>

Source§

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

Source§

impl<'a, T: NativeType + IsFloat + Add<Output = T> + Sub<Output = T> + NumCast + Div<Output = T>> RollingAggWindowNulls<'a, T> for MeanWindow<'a, T>

Source§

impl<'a, T: NativeType + IsFloat + Add<Output = T> + Sub<Output = T>> RollingAggWindowNulls<'a, T> for SumWindow<'a, T>

Source§

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

Source§

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

Source§

impl<'a, T: NativeType> RollingAggWindowNulls<'a, T> for SortedMinMax<'a, T>