pub trait AccumulateFunction: Send + Sync {
// Required methods
fn init(&self) -> Box<dyn AccumulateState>;
fn name(&self) -> &str;
fn clone_box(&self) -> Box<dyn AccumulateFunction>;
}Expand description
Accumulate function trait - defines how to aggregate values
Required Methods§
Sourcefn init(&self) -> Box<dyn AccumulateState>
fn init(&self) -> Box<dyn AccumulateState>
Initialize the accumulator
Sourcefn clone_box(&self) -> Box<dyn AccumulateFunction>
fn clone_box(&self) -> Box<dyn AccumulateFunction>
Clone the function
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".