pub struct DictionaryRangedUniqueState { /* private fields */ }
Expand description
A specialized unique kernel for DictionaryArray
for when all values are in a small known
range.
Implementations§
Trait Implementations§
Source§impl RangedUniqueKernel for DictionaryRangedUniqueState
impl RangedUniqueKernel for DictionaryRangedUniqueState
type Array = DictionaryArray<u32>
Source§fn has_seen_all(&self) -> bool
fn has_seen_all(&self) -> bool
Returns whether all the values in the whole range are in the state
Source§fn append_state(&mut self, other: &Self)
fn append_state(&mut self, other: &Self)
Append another state into the
State
Source§fn finalize_unique(self) -> Self::Array
fn finalize_unique(self) -> Self::Array
Consume the state to get the unique elements
Source§fn finalize_n_unique(&self) -> usize
fn finalize_n_unique(&self) -> usize
Consume the state to get the number of unique elements including null
Source§fn finalize_n_unique_non_null(&self) -> usize
fn finalize_n_unique_non_null(&self) -> usize
Consume the state to get the number of unique elements excluding null
Auto Trait Implementations§
impl Freeze for DictionaryRangedUniqueState
impl !RefUnwindSafe for DictionaryRangedUniqueState
impl Send for DictionaryRangedUniqueState
impl Sync for DictionaryRangedUniqueState
impl Unpin for DictionaryRangedUniqueState
impl !UnwindSafe for DictionaryRangedUniqueState
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> 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