pub struct JITKernelCompiler { /* private fields */ }Expand description
Thread-safe wrapper around JITCompiler for use with ExecutionContext.
This wrapper implements the KernelCompiler trait from shape-runtime,
enabling JIT kernel compilation to be injected into ExecutionContext without
circular dependencies.
Implementations§
Trait Implementations§
Source§impl Default for JITKernelCompiler
impl Default for JITKernelCompiler
Source§impl KernelCompiler for JITKernelCompiler
impl KernelCompiler for JITKernelCompiler
Source§fn compile_kernel(
&self,
name: &str,
function_bytecode: &[u8],
config: &KernelCompileConfig,
) -> Result<SimulationKernelFn, String>
fn compile_kernel( &self, name: &str, function_bytecode: &[u8], config: &KernelCompileConfig, ) -> Result<SimulationKernelFn, String>
Compile a strategy function to a JIT kernel. Read more
Source§fn supports_feature(&self, feature: &str) -> bool
fn supports_feature(&self, feature: &str) -> bool
Check if the compiler supports a given feature.
impl Send for JITKernelCompiler
impl Sync for JITKernelCompiler
Auto Trait Implementations§
impl !Freeze for JITKernelCompiler
impl RefUnwindSafe for JITKernelCompiler
impl Unpin for JITKernelCompiler
impl UnsafeUnpin for JITKernelCompiler
impl UnwindSafe for JITKernelCompiler
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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