pub struct GroupByDynamicWindower { /* private fields */ }Implementations§
Source§impl GroupByDynamicWindower
impl GroupByDynamicWindower
pub fn new( period: Duration, offset: Duration, every: Duration, start_by: StartBy, closed: ClosedWindow, tu: TimeUnit, tz: Option<Tz>, include_lower_bound: bool, include_upper_bound: bool, ) -> Self
pub fn find_first_window_around( &self, lower_bound: i64, target: i64, ) -> PolarsResult<Result<(i64, i64), i64>>
pub fn insert( &mut self, time: &[i64], windows: &mut Vec<[IdxSize; 2]>, lower_bound: &mut Vec<i64>, upper_bound: &mut Vec<i64>, ) -> PolarsResult<()>
pub fn lowest_needed_index(&self) -> IdxSize
pub fn finalize( &mut self, windows: &mut Vec<[IdxSize; 2]>, lower_bound: &mut Vec<i64>, upper_bound: &mut Vec<i64>, )
pub fn num_seen(&self) -> IdxSize
pub fn time_unit(&self) -> TimeUnit
Auto Trait Implementations§
impl Freeze for GroupByDynamicWindower
impl RefUnwindSafe for GroupByDynamicWindower
impl Send for GroupByDynamicWindower
impl Sync for GroupByDynamicWindower
impl Unpin for GroupByDynamicWindower
impl UnwindSafe for GroupByDynamicWindower
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