pub struct GroupsIdx { /* private fields */ }
Available on crate feature
algorithm_group_by
only.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<IdxVec>, sorted: bool) -> Self
pub fn sort(&mut self)
pub fn is_sorted_flag(&self) -> bool
pub fn iter(&self) -> Zip<Copied<Iter<'_, IdxSize>>, Iter<'_, IdxVec>>
pub fn all(&self) -> &[IdxVec]
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, UnitVec<u32>)> for GroupsIdx
impl FromParallelIterator<(u32, UnitVec<u32>)> 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
impl Eq for GroupsIdx
impl StructuralPartialEq for GroupsIdx
Auto Trait Implementations§
impl Freeze for GroupsIdx
impl RefUnwindSafe for GroupsIdx
impl Send for GroupsIdx
impl Sync for GroupsIdx
impl Unpin for GroupsIdx
impl UnwindSafe for GroupsIdx
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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<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