pub struct SumWindow<'a, T, S> { /* private fields */ }Trait Implementations§
Source§impl<T, S> RollingAggWindowNoNulls<T> for SumWindow<'_, T, S>where
T: NativeType + IsFloat + Sub<Output = T> + NumCast + PartialOrd,
S: NativeType + AddAssign + SubAssign + Sub<Output = S> + Add<Output = S> + NumCast,
impl<T, S> RollingAggWindowNoNulls<T> for SumWindow<'_, T, S>where
T: NativeType + IsFloat + Sub<Output = T> + NumCast + PartialOrd,
S: NativeType + AddAssign + SubAssign + Sub<Output = S> + Add<Output = S> + NumCast,
type This<'a> = SumWindow<'a, T, S>
fn new<'a>( slice: &'a [T], start: usize, end: usize, _params: Option<RollingFnParams>, _window_size: Option<usize>, ) -> Self::This<'a>
Source§unsafe fn update(&mut self, new_start: usize, new_end: usize)
unsafe fn update(&mut self, new_start: usize, new_end: usize)
Update and recompute the window Read more
Source§impl<T, S> RollingAggWindowNulls<T> for SumWindow<'_, T, S>where
T: NativeType + IsFloat + Sub<Output = T> + NumCast + PartialOrd,
S: NativeType + AddAssign + SubAssign + Sub<Output = S> + Add<Output = S> + NumCast,
impl<T, S> RollingAggWindowNulls<T> for SumWindow<'_, T, S>where
T: NativeType + IsFloat + Sub<Output = T> + NumCast + PartialOrd,
S: NativeType + AddAssign + SubAssign + Sub<Output = S> + Add<Output = S> + NumCast,
type This<'a> = SumWindow<'a, T, S>
Source§fn new<'a>(
slice: &'a [T],
validity: &'a Bitmap,
start: usize,
end: usize,
_params: Option<RollingFnParams>,
_window_size: Option<usize>,
) -> Self::This<'a>
fn new<'a>( slice: &'a [T], validity: &'a Bitmap, start: usize, end: usize, _params: Option<RollingFnParams>, _window_size: Option<usize>, ) -> Self::This<'a>
Safety Read more
Source§fn get_agg(&self, _idx: usize) -> Option<T>
fn get_agg(&self, _idx: usize) -> Option<T>
Get the aggregate of the current window relative to the value at
idx.fn is_valid(&self, min_periods: usize) -> bool
Auto Trait Implementations§
impl<'a, T, S> Freeze for SumWindow<'a, T, S>where
S: Freeze,
impl<'a, T, S> !RefUnwindSafe for SumWindow<'a, T, S>
impl<'a, T, S> Send for SumWindow<'a, T, S>
impl<'a, T, S> Sync for SumWindow<'a, T, S>
impl<'a, T, S> Unpin for SumWindow<'a, T, S>where
S: Unpin,
impl<'a, T, S> !UnwindSafe for SumWindow<'a, T, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more