# [−] [src] Trait wasmi::ModuleImportResolver

    pub trait ModuleImportResolver {
        fn resolve_func(
            &self,
            field_name: &str,
            _signature: &Signature
        ) -> Result<FuncRef, Error> { ... }
        fn resolve_global(
            &self,
            field_name: &str,
            _global_type: &GlobalDescriptor
        ) -> Result<GlobalRef, Error> { ... }
        fn resolve_memory(
            &self,
            field_name: &str,
            _memory_type: &MemoryDescriptor
        ) -> Result<MemoryRef, Error> { ... }
        fn resolve_table(
            &self,
            field_name: &str,
            _table_type: &TableDescriptor
        ) -> Result<TableRef, Error> { ... }
    }

Version of `ImportResolver` specialized for a single module.

## Provided methods

### `fn resolve_func(
&self,
field_name: &str,
_signature: &Signature
) -> Result<FuncRef, Error>`

Resolve a function.

See `ImportResolver::resolve_func` for details.

### `fn resolve_global(
&self,
field_name: &str,
_global_type: &GlobalDescriptor
) -> Result<GlobalRef, Error>`

Resolve a global variable.

See `ImportResolver::resolve_global` for details.

### `fn resolve_memory(
&self,
field_name: &str,
_memory_type: &MemoryDescriptor
) -> Result<MemoryRef, Error>`

Resolve a memory.

See `ImportResolver::resolve_memory` for details.

### `fn resolve_table(
&self,
field_name: &str,
_table_type: &TableDescriptor
) -> Result<TableRef, Error>`

Resolve a table.

See `ImportResolver::resolve_table` for details.

Loading content...

## Implementors

### `impl ModuleImportResolver for ModuleRef` [src]

#### `fn resolve_func(
&self,
field_name: &str,
_signature: &Signature
) -> Result<FuncRef, Error>` [src]

#### `fn resolve_global(
&self,
field_name: &str,
_global_type: &GlobalDescriptor
) -> Result<GlobalRef, Error>` [src]

#### `fn resolve_memory(
&self,
field_name: &str,
_memory_type: &MemoryDescriptor
) -> Result<MemoryRef, Error>` [src]

#### `fn resolve_table(
&self,
field_name: &str,
_table_type: &TableDescriptor
) -> Result<TableRef, Error>` [src]

Loading content...

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)