pub trait Aggregator {
// Required methods
fn aggregate(&self, _: &[usize]) -> usize;
fn agg_clone(&self) -> Box<dyn Aggregator>;
}Expand description
The base aggregation trait. It is intentionally not parameterized over type so that Tuple operation remains fully generic.
Required Methods§
Sourcefn aggregate(&self, _: &[usize]) -> usize
fn aggregate(&self, _: &[usize]) -> usize
This is an associative, commutative function over points in some dataspace. Accepting more than two points is a hack to allow allocation skipping
Sourcefn agg_clone(&self) -> Box<dyn Aggregator>
fn agg_clone(&self) -> Box<dyn Aggregator>
Clone, jammed into the trait to avoid multitrait problems