pub trait StatsProviderExt: StatsProvider {
// Provided methods
fn get_scalar(&self, stat: Stat, dtype: &DType) -> Option<Precision<Scalar>> { ... }
fn get_scalar_bound<S: StatType<Scalar>>(
&self,
dtype: &DType,
) -> Option<S::Bound> { ... }
fn get_as<T: for<'a> TryFrom<&'a ScalarValue, Error = VortexError>>(
&self,
stat: Stat,
) -> Option<Precision<T>> { ... }
fn get_as_bound<S, U>(&self) -> Option<S::Bound>
where S: StatType<U>,
U: for<'a> TryFrom<&'a ScalarValue, Error = VortexError> { ... }
}
Provided Methods§
fn get_scalar(&self, stat: Stat, dtype: &DType) -> Option<Precision<Scalar>>
fn get_scalar_bound<S: StatType<Scalar>>( &self, dtype: &DType, ) -> Option<S::Bound>
fn get_as<T: for<'a> TryFrom<&'a ScalarValue, Error = VortexError>>( &self, stat: Stat, ) -> Option<Precision<T>>
fn get_as_bound<S, U>(&self) -> Option<S::Bound>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.