Skip to main content

SQLAggregateState

Trait SQLAggregateState 

Source
pub trait SQLAggregateState: Send {
    // Required methods
    fn observe(&mut self, args: &[Value]) -> Result<(), SQLError>;
    fn finish(&self) -> Result<Value, SQLError>;
}
Expand description

Per-group state for a registered SQL aggregate function.

Required Methods§

Source

fn observe(&mut self, args: &[Value]) -> Result<(), SQLError>

Source

fn finish(&self) -> Result<Value, SQLError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§