pub trait JITFunctionFactory: Send + Sync {
// Required methods
fn create(
&self,
expression: &str,
array_type_id: TypeId,
) -> CoreResult<Box<dyn JITFunction>>;
fn supports_array_type(&self, array_type_id: TypeId) -> bool;
}
Expand description
A factory for creating JIT functions for specific array implementations.
Required Methods§
Sourcefn create(
&self,
expression: &str,
array_type_id: TypeId,
) -> CoreResult<Box<dyn JITFunction>>
fn create( &self, expression: &str, array_type_id: TypeId, ) -> CoreResult<Box<dyn JITFunction>>
Create a new JIT function for the given expression and array type.
Sourcefn supports_array_type(&self, array_type_id: TypeId) -> bool
fn supports_array_type(&self, array_type_id: TypeId) -> bool
Check if this factory supports the given array type.