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<u32>, all: Vec<UnitVec<u32>>, sorted: bool) -> GroupsIdx
pub fn sort(&mut self)
pub fn is_sorted_flag(&self) -> bool
pub fn iter(&self) -> Zip<Copied<Iter<'_, u32>>, Iter<'_, UnitVec<u32>>>
pub fn all(&self) -> &[UnitVec<u32>]
pub fn first(&self) -> &[u32]
pub fn first_mut(&mut self) -> &mut Vec<u32>
Trait Implementations§
source§impl From<GroupsIdx> for GroupsProxy
impl From<GroupsIdx> for GroupsProxy
source§fn from(groups: GroupsIdx) -> GroupsProxy
fn from(groups: GroupsIdx) -> GroupsProxy
Converts to this type from the input type.
source§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 for GroupsIdx
impl PartialEq for 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
§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
Checks if this value is equivalent to the given key. Read more
§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<A, T, E> FromFallibleIterator<A, E> for Twhere
T: FromIterator<A>,
E: Error,
impl<A, T, E> FromFallibleIterator<A, E> for Twhere
T: FromIterator<A>,
E: Error,
fn from_fallible_iter<F>(iter: F) -> Result<T, E>where
F: FallibleIterator<E, Item = A>,
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