AccumulateFunction

Trait AccumulateFunction 

Source
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§

Source

fn init(&self) -> Box<dyn AccumulateState>

Initialize the accumulator

Source

fn name(&self) -> &str

Get the function name

Source

fn clone_box(&self) -> Box<dyn AccumulateFunction>

Clone the function

Implementors§