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<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
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.§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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