Skip to main content

SQLAggregateFunction

Trait SQLAggregateFunction 

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

Infallible factory retained for existing Rust aggregate implementations.

Every implementation also implements SQLAggregateFactory. A callback whose state creation can fail implements that fallible interface directly.

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,