pub struct VecMaskGroupedReduction<R: Reducer> { /* private fields */ }
Trait Implementations§
Source§impl<R> GroupedReduction for VecMaskGroupedReduction<R>where
R: Reducer,
impl<R> GroupedReduction for VecMaskGroupedReduction<R>where
R: Reducer,
Source§fn new_empty(&self) -> Box<dyn GroupedReduction>
fn new_empty(&self) -> Box<dyn GroupedReduction>
Returns a new empty reduction.
Source§fn reserve(&mut self, additional: usize)
fn reserve(&mut self, additional: usize)
Reserves space in this GroupedReduction for an additional number of groups.
Source§fn resize(&mut self, num_groups: IdxSize)
fn resize(&mut self, num_groups: IdxSize)
Resizes this GroupedReduction to the given number of groups. Read more
Source§fn update_group(
&mut self,
values: &Series,
group_idx: IdxSize,
) -> PolarsResult<()>
fn update_group( &mut self, values: &Series, group_idx: IdxSize, ) -> PolarsResult<()>
Updates the specified group with the given values.
Source§unsafe fn update_groups(
&mut self,
values: &Series,
group_idxs: &[IdxSize],
) -> PolarsResult<()>
unsafe fn update_groups( &mut self, values: &Series, group_idxs: &[IdxSize], ) -> PolarsResult<()>
Updates this GroupedReduction with new values. values[i] should
be added to reduction self[group_idxs[i]]. Read more
Source§unsafe fn combine(
&mut self,
other: &dyn GroupedReduction,
group_idxs: &[IdxSize],
) -> PolarsResult<()>
unsafe fn combine( &mut self, other: &dyn GroupedReduction, group_idxs: &[IdxSize], ) -> PolarsResult<()>
Combines this GroupedReduction with another. Group other[i]
should be combined into group self[group_idxs[i]]. Read more
Source§unsafe fn gather_combine(
&mut self,
other: &dyn GroupedReduction,
subset: &[IdxSize],
group_idxs: &[IdxSize],
) -> PolarsResult<()>
unsafe fn gather_combine( &mut self, other: &dyn GroupedReduction, subset: &[IdxSize], group_idxs: &[IdxSize], ) -> PolarsResult<()>
Combines this GroupedReduction with another. Group other[subset[i]]
should be combined into group self[group_idxs[i]]. Read more
Source§unsafe fn partition(
self: Box<Self>,
partition_sizes: &[IdxSize],
partition_idxs: &[IdxSize],
) -> Vec<Box<dyn GroupedReduction>>
unsafe fn partition( self: Box<Self>, partition_sizes: &[IdxSize], partition_idxs: &[IdxSize], ) -> Vec<Box<dyn GroupedReduction>>
Partitions this GroupedReduction into several partitions. Read more
Auto Trait Implementations§
impl<R> Freeze for VecMaskGroupedReduction<R>where
R: Freeze,
impl<R> RefUnwindSafe for VecMaskGroupedReduction<R>
impl<R> Send for VecMaskGroupedReduction<R>
impl<R> Sync for VecMaskGroupedReduction<R>
impl<R> Unpin for VecMaskGroupedReduction<R>
impl<R> UnwindSafe for VecMaskGroupedReduction<R>
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