[][src]Function wasmtime_jit::instantiate

pub unsafe fn instantiate(
    compiler: &mut Compiler,
    data: &[u8],
    resolver: &mut dyn Resolver,
    debug_info: bool
) -> Result<InstanceHandle, SetupError>

Create a new wasm instance by compiling the wasm module in data and instatiating it.

This is equivalent to createing a CompiledModule and calling instantiate() on it, but avoids creating an intermediate copy of the data initializers.

Unsafety

See InstanceHandle::new