[−][src]Struct wasmtime_jit::CompiledModule
A compiled wasm module, ready to be instantiated.
Methods
impl CompiledModule
[src]
pub fn new<'data>(
compiler: &mut Compiler,
data: &'data [u8],
module_name: Option<String>,
resolver: &mut dyn Resolver,
global_exports: Rc<RefCell<HashMap<String, Option<Export>>>>,
debug_info: bool
) -> Result<Self, SetupError>
[src]
compiler: &mut Compiler,
data: &'data [u8],
module_name: Option<String>,
resolver: &mut dyn Resolver,
global_exports: Rc<RefCell<HashMap<String, Option<Export>>>>,
debug_info: bool
) -> Result<Self, SetupError>
Compile a data buffer into a CompiledModule
, which may then be instantiated.
pub fn from_parts(
module: Module,
global_exports: Rc<RefCell<HashMap<String, Option<Export>>>>,
finished_functions: BoxedSlice<DefinedFuncIndex, *const VMFunctionBody>,
imports: Imports,
data_initializers: Box<[OwnedDataInitializer]>,
signatures: BoxedSlice<SignatureIndex, VMSharedSignatureIndex>,
dbg_jit_registration: Option<GdbJitImageRegistration>
) -> Self
[src]
module: Module,
global_exports: Rc<RefCell<HashMap<String, Option<Export>>>>,
finished_functions: BoxedSlice<DefinedFuncIndex, *const VMFunctionBody>,
imports: Imports,
data_initializers: Box<[OwnedDataInitializer]>,
signatures: BoxedSlice<SignatureIndex, VMSharedSignatureIndex>,
dbg_jit_registration: Option<GdbJitImageRegistration>
) -> Self
Construct a CompiledModule
from component parts.
pub fn instantiate(&mut self) -> Result<InstanceHandle, InstantiationError>
[src]
Crate an Instance
from this CompiledModule
.
Note that if only one instance of this module is needed, it may be more
efficient to call the top-level instantiate
, since that avoids copying
the data initializers.
pub fn module(&self) -> Rc<Module>
[src]
Return a reference-counting pointer to a module.
pub fn module_ref(&self) -> &Module
[src]
Return a reference to a module.
Auto Trait Implementations
impl !RefUnwindSafe for CompiledModule
impl !Send for CompiledModule
impl !Sync for CompiledModule
impl Unpin for CompiledModule
impl !UnwindSafe for CompiledModule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,