trait NumericAccumulator<T: ArrowNativeTypeOp>: Copy + Default {
// Required methods
fn accumulate(&mut self, value: T);
fn accumulate_nullable(&mut self, value: T, valid: bool);
fn merge(&mut self, other: Self);
fn finish(&mut self) -> T;
}
Expand description
An accumulator for primitive numeric values.
Required Methods§
Sourcefn accumulate(&mut self, value: T)
fn accumulate(&mut self, value: T)
Accumulate a non-null value.
Sourcefn accumulate_nullable(&mut self, value: T, valid: bool)
fn accumulate_nullable(&mut self, value: T, valid: bool)
Accumulate a nullable values.
If valid
is false the value
should not affect the accumulator state.
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.