Struct vortex_array::stats::StatsSet
source · pub struct StatsSet { /* private fields */ }
Implementations§
source§impl StatsSet
impl StatsSet
sourcepub fn new_unchecked(values: Vec<(Stat, Scalar)>) -> Self
pub fn new_unchecked(values: Vec<(Stat, Scalar)>) -> Self
Create new StatSet without validating uniqueness of all the entries
§Safety
This method will not panic or trigger UB, but may lead to duplicate stats being stored.
sourcepub fn nulls(len: usize, dtype: &DType) -> Self
pub fn nulls(len: usize, dtype: &DType) -> Self
Specialized constructor for the case where the StatsSet represents an array consisting entirely of null values.
pub fn constant(scalar: &Scalar, length: usize) -> Self
pub fn bools_with_true_and_null_count( true_count: usize, null_count: usize, len: usize, ) -> Self
pub fn of<S: Into<Scalar>>(stat: Stat, value: S) -> Self
source§impl StatsSet
impl StatsSet
source§impl StatsSet
impl StatsSet
sourcepub fn merge_ordered(self, other: &Self) -> Self
pub fn merge_ordered(self, other: &Self) -> Self
Merge stats set other
into self
, with the semantic assumption that other
contains stats from an array that is appended to the array represented by self
.
sourcepub fn merge_unordered(self, other: &Self) -> Self
pub fn merge_unordered(self, other: &Self) -> Self
Merge stats set other
into self
, with no assumption on ordering.
Stats that are not commutative (e.g., is_sorted) are dropped from the result.
Trait Implementations§
source§impl Extend<(Stat, Scalar)> for StatsSet
impl Extend<(Stat, Scalar)> for StatsSet
source§fn extend<T: IntoIterator<Item = (Stat, Scalar)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (Stat, Scalar)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl IntoIterator for StatsSet
impl IntoIterator for StatsSet
impl StructuralPartialEq for StatsSet
Auto Trait Implementations§
impl Freeze for StatsSet
impl RefUnwindSafe for StatsSet
impl Send for StatsSet
impl Sync for StatsSet
impl Unpin for StatsSet
impl UnwindSafe for StatsSet
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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