pub trait JITFunction: Send + Sync {
// Required methods
fn evaluate(&self, args: &[Box<dyn Any>]) -> CoreResult<Box<dyn Any>>;
fn source(&self) -> String;
fn compile_info(&self) -> HashMap<String, String>;
fn clone_box(&self) -> Box<dyn JITFunction>;
}
Expand description
A JIT-compiled function that can be evaluated on arrays.
Required Methods§
Sourcefn evaluate(&self, args: &[Box<dyn Any>]) -> CoreResult<Box<dyn Any>>
fn evaluate(&self, args: &[Box<dyn Any>]) -> CoreResult<Box<dyn Any>>
Evaluate the function with the given arguments.
Sourcefn compile_info(&self) -> HashMap<String, String>
fn compile_info(&self) -> HashMap<String, String>
Get information about how the function was compiled.
Sourcefn clone_box(&self) -> Box<dyn JITFunction>
fn clone_box(&self) -> Box<dyn JITFunction>
Clone this JIT function into a Box<dyn JITFunction>
.