Skip to main content

SQLAggregateFunction

Trait SQLAggregateFunction 

Source
pub trait SQLAggregateFunction: Send + Sync {
    // Required method
    fn create_state(&self) -> Box<dyn SQLAggregateState>;
}
Expand description

Factory for per-group SQL aggregate state.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F, S> SQLAggregateFunction for F
where F: Fn() -> S + Send + Sync, S: SQLAggregateState + 'static,