pub fn resolve_imports(
engine: &dyn Engine,
resolver: &dyn Resolver,
import_counts: &ImportCounts,
imports: &[VMImport],
finished_dynamic_function_trampolines: &BoxedSlice<FunctionIndex, FunctionBodyPtr>,
) -> Result<Imports, LinkError>
Expand description
This function allows to match all imports of a ModuleInfo
with concrete definitions provided by
a Resolver
.
If all imports are satisfied returns an Imports
instance required for a module instantiation.