#[repr(u8)]pub enum Stat {
IsConstant = 0,
IsSorted = 1,
IsStrictSorted = 2,
Max = 3,
Min = 4,
Sum = 5,
NullCount = 6,
UncompressedSizeInBytes = 7,
NaNCount = 8,
}Variants§
IsConstant = 0
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 = 1
Whether the non-null values in the array are sorted (i.e., we skip nulls)
IsStrictSorted = 2
Whether the non-null values in the array are strictly sorted (i.e., sorted with no duplicates)
Max = 3
The maximum value in the array (ignoring nulls, unless all values are null)
Min = 4
The minimum value in the array (ignoring nulls, unless all values are null)
Sum = 5
The sum of the non-null values of the array.
NullCount = 6
The number of null values in the array
UncompressedSizeInBytes = 7
The uncompressed size of the array in bytes
NaNCount = 8
The number of NaN 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
pub fn name(&self) -> &str
Trait Implementations§
Source§impl Ord for Stat
impl Ord for Stat
Source§impl PartialOrd for Stat
impl PartialOrd for Stat
Source§impl Sequence for Stat
impl Sequence for Stat
Source§impl TryFromPrimitive for Stat
impl TryFromPrimitive 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> Comparable<K> for Q
impl<Q, K> Comparable<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