pub struct StatsSetRef<'a> { /* private fields */ }
Expand description
Reference to an array’s StatsSet
. Can be used to get and mutate the underlying stats.
Constructed by calling ArrayStats::to_ref
.
Implementations§
Source§impl StatsSetRef<'_>
impl StatsSetRef<'_>
pub fn set_iter(&self, iter: StatsSetIntoIter)
pub fn inherit(&self, parent_stats: StatsSetRef<'_>)
pub fn to_owned(&self) -> StatsSet
pub fn into_iter(&self) -> StatsSetIntoIter ⓘ
pub fn compute_stat(&self, stat: Stat) -> VortexResult<Option<ScalarValue>>
pub fn compute_all(&self, stats: &[Stat]) -> VortexResult<StatsSet>
Source§impl StatsSetRef<'_>
impl StatsSetRef<'_>
pub fn get_as<U: for<'a> TryFrom<&'a ScalarValue, Error = VortexError>>( &self, stat: Stat, ) -> Option<Precision<U>>
pub fn get_as_bound<S, U>(&self) -> Option<S::Bound>
pub fn compute_as<U: for<'a> TryFrom<&'a ScalarValue, Error = VortexError>>( &self, stat: Stat, ) -> Option<U>
pub fn set(&self, stat: Stat, value: Precision<ScalarValue>)
pub fn clear(&self, stat: Stat)
pub fn retain(&self, stats: &[Stat])
pub fn compute_min<U: for<'a> TryFrom<&'a ScalarValue, Error = VortexError>>( &self, ) -> Option<U>
pub fn compute_max<U: for<'a> TryFrom<&'a ScalarValue, Error = VortexError>>( &self, ) -> Option<U>
pub fn compute_is_sorted(&self) -> Option<bool>
pub fn compute_is_strict_sorted(&self) -> Option<bool>
pub fn compute_is_constant(&self) -> Option<bool>
pub fn compute_null_count(&self) -> Option<usize>
pub fn compute_uncompressed_size_in_bytes(&self) -> Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StatsSetRef<'a>
impl<'a> !RefUnwindSafe for StatsSetRef<'a>
impl<'a> Send for StatsSetRef<'a>
impl<'a> Sync for StatsSetRef<'a>
impl<'a> Unpin for StatsSetRef<'a>
impl<'a> !UnwindSafe for StatsSetRef<'a>
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