pub struct ScriptCompiler { /* private fields */ }Expand description
Script compiler for converting modules to JIT-compiled form
Implementations§
Source§impl ScriptCompiler
impl ScriptCompiler
Sourcepub fn script<M: ScriptableModule>(
&mut self,
module: M,
) -> JitResult<CompiledModule>
pub fn script<M: ScriptableModule>( &mut self, module: M, ) -> JitResult<CompiledModule>
Script a module into a compiled module
Sourcepub fn add_type_annotation(&mut self, name: String, annotation: TypeAnnotation)
pub fn add_type_annotation(&mut self, name: String, annotation: TypeAnnotation)
Add type annotation for a parameter or variable
Auto Trait Implementations§
impl !RefUnwindSafe for ScriptCompiler
impl !UnwindSafe for ScriptCompiler
impl Freeze for ScriptCompiler
impl Send for ScriptCompiler
impl Sync for ScriptCompiler
impl Unpin for ScriptCompiler
impl UnsafeUnpin for ScriptCompiler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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