#[repr(u8)]pub enum Stat {
IsConstant = 0,
IsSorted = 1,
IsStrictSorted = 2,
Max = 3,
Min = 4,
Sum = 5,
NullCount = 6,
UncompressedSizeInBytes = 7,
}
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
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 dtype(&self, data_type: &DType) -> Option<DType>
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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out
indicating that a T
is niched.