#[non_exhaustive]pub enum Stat {
BitWidthFreq,
TrailingZeroFreq,
IsConstant,
IsSorted,
IsStrictSorted,
Max,
Min,
RunCount,
TrueCount,
NullCount,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BitWidthFreq
Frequency of each bit width (nulls are treated as 0)
TrailingZeroFreq
Frequency of each trailing zero (nulls are treated as 0)
IsConstant
Whether all values are the same (nulls are not equal to other non-null values, so this is true iff all values are null or all values are the same non-null value)
IsSorted
Whether the array is sorted
IsStrictSorted
Whether the array is strictly sorted (i.e., sorted with no duplicates)
Max
The maximum value in the array (ignoring nulls, unless all values are null)
Min
The minimum value in the array (ignoring nulls, unless all values are null)
RunCount
The number of runs in the array (ignoring nulls)
TrueCount
The number of true values in the array (nulls are treated as false)
NullCount
The number of null values in the array
Implementations§
Source§impl Stat
impl Stat
Sourcepub fn is_commutative(&self) -> bool
pub fn is_commutative(&self) -> bool
Whether the statistic is commutative (i.e., whether merging can be done independently of ordering) e.g., min/max are commutative, but is_sorted is not
Sourcepub fn has_same_dtype_as_array(&self) -> bool
pub fn has_same_dtype_as_array(&self) -> bool
Whether the statistic has the same dtype as the array it’s computed on
Trait Implementations§
Source§impl Sequence for Stat
impl Sequence for Stat
impl Copy for Stat
impl Eq for Stat
impl StructuralPartialEq for Stat
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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