[][src]Struct wasmtime_jit::CompiledModule

pub struct CompiledModule { /* fields omitted */ }

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]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.