pub struct JITManager { /* private fields */ }
Expand description
A JIT manager that selects the appropriate factory for a given array type
Implementations§
Source§impl JITManager
impl JITManager
Sourcepub fn register_factory(&mut self, factory: Box<dyn JITFunctionFactory>)
pub fn register_factory(&mut self, factory: Box<dyn JITFunctionFactory>)
Register a JIT function factory.
Sourcepub fn get_factory_for_array_type(
&self,
array_type_id: TypeId,
) -> Option<&dyn JITFunctionFactory>
pub fn get_factory_for_array_type( &self, array_type_id: TypeId, ) -> Option<&dyn JITFunctionFactory>
Get a JIT function factory that supports the given array type.
Sourcepub fn compile(
&self,
expression: &str,
array_type_id: TypeId,
) -> CoreResult<Box<dyn JITFunction>>
pub fn compile( &self, expression: &str, array_type_id: TypeId, ) -> CoreResult<Box<dyn JITFunction>>
Compile a JIT function for the given expression and array type.
Sourcepub fn initialize(&mut self)
pub fn initialize(&mut self)
Initialize the JIT manager with default factories.
Auto Trait Implementations§
impl Freeze for JITManager
impl !RefUnwindSafe for JITManager
impl Send for JITManager
impl Sync for JITManager
impl Unpin for JITManager
impl !UnwindSafe for JITManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more