pub trait NamedResolver {
    fn resolve_by_name(&self, module: &str, field: &str) -> Option<Export>;
}
Expand description

Import resolver connects imports with available exported values.

This is a specific subtrait for Resolver for those users who don’t care about the index, but only about the module and field for the resolution.

Required Methods

Resolves an import a WebAssembly module to an export it’s hooked up to.

It receives the module and field names and return the Export in case it’s found.

Trait Implementations

Resolves an import a WebAssembly module to an export it’s hooked up to. Read more

Implementations on Foreign Types

Always returns None.

Implementors