pub struct GroupsIdx { /* private fields */ }
Expand description
Indexes of the groups, the first index is stored separately. this make sorting fast.
Implementations
sourceimpl GroupsIdx
impl GroupsIdx
pub fn sort(&mut self)
pub fn is_sorted(&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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl From<GroupsIdx> for GroupsProxy
impl From<GroupsIdx> for GroupsProxy
sourceimpl FromIterator<(u32, Vec<u32, Global>)> for GroupsIdx
impl FromIterator<(u32, Vec<u32, Global>)> for GroupsIdx
sourcefn from_iter<T: IntoIterator<Item = IdxItem>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = IdxItem>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl FromParallelIterator<(u32, Vec<u32, Global>)> for GroupsIdx
impl FromParallelIterator<(u32, Vec<u32, Global>)> for GroupsIdx
sourcefn from_par_iter<I>(par_iter: I) -> Self where
I: IntoParallelIterator<Item = IdxItem>,
fn from_par_iter<I>(par_iter: I) -> Self where
I: IntoParallelIterator<Item = IdxItem>,
Creates an instance of the collection from the parallel iterator par_iter
. Read more
sourceimpl<'a> IntoIterator for &'a GroupsIdx
impl<'a> IntoIterator for &'a GroupsIdx
sourceimpl<'a> IntoIterator for GroupsIdx
impl<'a> IntoIterator for GroupsIdx
sourceimpl<'a> IntoParallelIterator for &'a GroupsIdx
impl<'a> IntoParallelIterator for &'a GroupsIdx
sourceimpl IntoParallelIterator for GroupsIdx
impl IntoParallelIterator 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<'data, I> IntoParallelRefIterator<'data> for I where
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
impl<'data, I> IntoParallelRefIterator<'data> for I where
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. Read more
sourcefn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter
fn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter
Converts self
into a parallel iterator. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more