pub trait CustomVectorFunction: Send + Sync {
// Required methods
fn execute(&self, args: &[VectorServiceArg]) -> Result<VectorServiceResult>;
fn arity(&self) -> usize;
fn description(&self) -> String;
}Expand description
Custom vector function trait for user-defined functions
Required Methods§
fn execute(&self, args: &[VectorServiceArg]) -> Result<VectorServiceResult>
fn arity(&self) -> usize
fn description(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".