Skip to main content

SQLScalarFunction

Trait SQLScalarFunction 

Source
pub trait SQLScalarFunction: Send + Sync {
    // Required method
    fn call(&self, args: &[Value]) -> Result<Value, SQLError>;
}
Expand description

Rust implementation of a scalar SQL function.

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> SQLScalarFunction for F
where F: Fn(&[Value]) -> Result<Value, SQLError> + Send + Sync,