pub enum GroupsType {
Idx(GroupsIdx),
Slice {
groups: Vec<[u32; 2]>,
rolling: bool,
},
}
Variants§
Implementations§
Source§impl GroupsType
impl GroupsType
pub fn into_idx(self) -> GroupsIdx
pub fn iter(&self) -> GroupsTypeIter<'_> ⓘ
pub fn sort(&mut self)
pub fn take_group_firsts(self) -> Vec<u32>
Sourcepub unsafe fn take_group_lasts(self) -> Vec<u32>
pub unsafe fn take_group_lasts(self) -> Vec<u32>
§Safety
This will not do any bounds checks. The caller must ensure all groups have members.
pub fn par_iter(&self) -> GroupsTypeParIter<'_>
Sourcepub fn unwrap_idx(&self) -> &GroupsIdx
pub fn unwrap_idx(&self) -> &GroupsIdx
Sourcepub fn unwrap_slice(&self) -> &Vec<[u32; 2]>
pub fn unwrap_slice(&self) -> &Vec<[u32; 2]>
pub fn get(&self, index: usize) -> GroupsIndicator<'_>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn group_count(&self) -> ChunkedArray<UInt32Type>
pub fn as_list_chunked(&self) -> ChunkedArray<ListType>
pub fn into_sliceable(self) -> GroupPositions
Trait Implementations§
Source§impl AsRef<GroupsType> for GroupPositions
impl AsRef<GroupsType> for GroupPositions
Source§fn as_ref(&self) -> &GroupsType
fn as_ref(&self) -> &GroupsType
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for GroupsType
impl Clone for GroupsType
Source§fn clone(&self) -> GroupsType
fn clone(&self) -> GroupsType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GroupsType
impl Debug for GroupsType
Source§impl Default for GroupsType
impl Default for GroupsType
Source§fn default() -> GroupsType
fn default() -> GroupsType
Returns the “default value” for a type. Read more
Source§impl From<GroupsIdx> for GroupsType
impl From<GroupsIdx> for GroupsType
Source§fn from(groups: GroupsIdx) -> GroupsType
fn from(groups: GroupsIdx) -> GroupsType
Converts to this type from the input type.
Source§impl PartialEq for GroupsType
impl PartialEq for GroupsType
impl Eq for GroupsType
impl StructuralPartialEq for GroupsType
Auto Trait Implementations§
impl Freeze for GroupsType
impl RefUnwindSafe for GroupsType
impl Send for GroupsType
impl Sync for GroupsType
impl Unpin for GroupsType
impl UnwindSafe for GroupsType
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,
§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