pub trait Stats<T>: Sized {
// Required methods
fn empty() -> Self;
fn empty_vec(len: usize) -> StatsVec<Self>;
fn invalid() -> Self;
fn merge(stats: &[Self]) -> Self;
fn merge_cols(stats: &[StatsVec<Self>]) -> StatsVec<Self>;
fn add(&mut self, elem: T, index: usize);
}
Expand description
Operations on statistics.
Required Methods§
Sourcefn merge_cols(stats: &[StatsVec<Self>]) -> StatsVec<Self>
fn merge_cols(stats: &[StatsVec<Self>]) -> StatsVec<Self>
Merges several vectors of statistics into one vector.
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.