Skip to main content

FunctionExecutor

Trait FunctionExecutor 

Source
pub trait FunctionExecutor {
    // Required methods
    fn execute(
        &self,
        context: &mut FunctionContext,
        args: &[Value],
    ) -> Result<()>;
    fn name(&self) -> &str;
}
Expand description

Trait for executable functions

Required Methods§

Source

fn execute(&self, context: &mut FunctionContext, args: &[Value]) -> Result<()>

Execute the function with given arguments

Source

fn name(&self) -> &str

Function name

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§