pub trait Grouping {
// Required methods
fn len(&self) -> usize;
fn fold<T, R>(&self, data: &[T]) -> (Vec<<R as Reduction<T>>::Total>, bool)
where T: Copy,
R: Reduction<T>;
fn scan<T, R>(&self, data: &[T]) -> (Vec<<R as Reduction<T>>::Total>, bool)
where T: Copy,
R: Reduction<T>;
}Expand description
A grouping of a vector’s items that a fold totals, or a scan runs, each on its own: classes by number (ClassNumbers), or ranges of positions (Ranges), as a segmented array’s items are ranges of its leaf.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".