[−][src]Trait wasmer::compiler::Compiler
Required methods
fn compile(
&self,
wasm: &[u8],
comp_conf: CompilerConfig,
Token
) -> Result<ModuleInner, CompileError>
&self,
wasm: &[u8],
comp_conf: CompilerConfig,
Token
) -> Result<ModuleInner, CompileError>
Compiles a Module
from WebAssembly binary format.
The CompileToken
parameter ensures that this can only
be called from inside the runtime.
unsafe fn from_cache(
&self,
cache: Artifact,
Token
) -> Result<ModuleInner, Error>
&self,
cache: Artifact,
Token
) -> Result<ModuleInner, Error>
Implementations on Foreign Types
impl<MCG, FCG, RM, E, CGEN> Compiler for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
CGEN: Fn() -> MiddlewareChain,
E: Debug,
FCG: FunctionCodeGenerator<E>,
MCG: ModuleCodeGenerator<FCG, RM, E>,
RM: 'static + RunnableModule,
[src]
CGEN: Fn() -> MiddlewareChain,
E: Debug,
FCG: FunctionCodeGenerator<E>,
MCG: ModuleCodeGenerator<FCG, RM, E>,
RM: 'static + RunnableModule,
fn compile(
&self,
wasm: &[u8],
compiler_config: CompilerConfig,
Token
) -> Result<ModuleInner, CompileError>
[src]
&self,
wasm: &[u8],
compiler_config: CompilerConfig,
Token
) -> Result<ModuleInner, CompileError>
unsafe fn from_cache(
&self,
artifact: Artifact,
token: Token
) -> Result<ModuleInner, Error>
[src]
&self,
artifact: Artifact,
token: Token
) -> Result<ModuleInner, Error>