Struct polars_core::prelude::GroupsIdx
source · pub struct GroupsIdx { /* private fields */ }
Expand description
Indexes of the groups, the first index is stored separately. this make sorting fast.
Implementations§
source§impl GroupsIdx
impl GroupsIdx
pub fn new(first: Vec<IdxSize>, all: Vec<Vec<IdxSize>>, sorted: bool) -> Self
pub fn sort(&mut self)
pub fn is_sorted_flag(&self) -> bool
pub fn iter(&self) -> Zip<Copied<Iter<'_, IdxSize>>, Iter<'_, Vec<IdxSize>>>
pub fn all(&self) -> &[Vec<IdxSize>]
pub fn first(&self) -> &[IdxSize]
pub fn first_mut(&mut self) -> &mut Vec<IdxSize> ⓘ
Trait Implementations§
source§impl From<GroupsIdx> for GroupsProxy
impl From<GroupsIdx> for GroupsProxy
source§impl FromParallelIterator<(u32, Vec<u32, Global>)> for GroupsIdx
impl FromParallelIterator<(u32, Vec<u32, Global>)> for GroupsIdx
source§fn from_par_iter<I>(par_iter: I) -> Selfwhere
I: IntoParallelIterator<Item = IdxItem>,
fn from_par_iter<I>(par_iter: I) -> Selfwhere
I: IntoParallelIterator<Item = IdxItem>,
Creates an instance of the collection from the parallel iterator
par_iter
. Read moresource§impl<'a> IntoIterator for &'a GroupsIdx
impl<'a> IntoIterator for &'a GroupsIdx
source§impl IntoIterator for GroupsIdx
impl IntoIterator for GroupsIdx
source§impl<'a> IntoParallelIterator for &'a GroupsIdx
impl<'a> IntoParallelIterator for &'a GroupsIdx
source§impl IntoParallelIterator for GroupsIdx
impl IntoParallelIterator for GroupsIdx
source§impl PartialEq<GroupsIdx> for GroupsIdx
impl PartialEq<GroupsIdx> for GroupsIdx
impl Eq for GroupsIdx
impl StructuralEq for GroupsIdx
impl StructuralPartialEq for GroupsIdx
Auto Trait Implementations§
impl RefUnwindSafe for GroupsIdx
impl Send for GroupsIdx
impl Sync for GroupsIdx
impl Unpin for GroupsIdx
impl UnwindSafe for GroupsIdx
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<'data, I> IntoParallelRefIterator<'data> for Iwhere
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
impl<'data, I> IntoParallelRefIterator<'data> for Iwhere
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
§type Iter = <&'data I as IntoParallelIterator>::Iter
type Iter = <&'data I as IntoParallelIterator>::Iter
The type of the parallel iterator that will be returned.
§type Item = <&'data I as IntoParallelIterator>::Item
type Item = <&'data I as IntoParallelIterator>::Item
The type of item that the parallel iterator will produce.
This will typically be an
&'data T
reference type.