JITFunctionFactory

Trait JITFunctionFactory 

Source
pub trait JITFunctionFactory: Send + Sync {
    // Required methods
    fn create_jit_function(
        &self,
        expression: &str,
        array_typeid: TypeId,
    ) -> CoreResult<Box<dyn JITFunction>>;
    fn supports_array_type(&self, array_typeid: TypeId) -> bool;
}
Expand description

A factory for creating JIT functions for specific array implementations.

Required Methods§

Source

fn create_jit_function( &self, expression: &str, array_typeid: TypeId, ) -> CoreResult<Box<dyn JITFunction>>

Create a new JIT function for the given expression and array type.

Source

fn supports_array_type(&self, array_typeid: TypeId) -> bool

Check if this factory supports the given array type.

Implementors§