pub trait Resolve {
type HostFunc: HostFunc;
// Provided methods
fn resolve_mem(&self, module: &str, name: &str) -> Option<&[u8]> { ... }
fn resolve_table(
&self,
module: &str,
name: &str,
) -> Option<&[Option<Funcidx>]> { ... }
fn resolve_global(&self, module: &str, name: &str) -> Option<Val> { ... }
fn resolve_func(&self, module: &str, name: &str) -> Option<Self::HostFunc> { ... }
}