Trait JITFunction

Source
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§

Source

fn evaluate(&self, args: &[Box<dyn Any>]) -> CoreResult<Box<dyn Any>>

Evaluate the function with the given arguments.

Source

fn source(&self) -> String

Get the source code of the compiled function.

Source

fn compile_info(&self) -> HashMap<String, String>

Get information about how the function was compiled.

Source

fn clone_box(&self) -> Box<dyn JITFunction>

Clone this JIT function into a Box<dyn JITFunction>.

Trait Implementations§

Source§

impl Clone for Box<dyn JITFunction>

Make Box<dyn JITFunction> cloneable via clone_box

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§