struct Instance { module: Arc, exports: Exports, } impl Instance { fn load(&self, loader: T) -> Result; fn func(&self, name: &str) -> ResolveResult>; fn resolve_func(&self, name: &str) -> ResolveResult; fn dyn_func(&self, name: &str) -> ResolveResult; fn call(&self, name: &str, params: &[Value]) -> CallResult>; fn context(&self) -> &Ctx; fn context_mut(&mut self) -> &mut Ctx; fn exports(&self) -> ExportsIter; fn module(&self) -> Module; fn get_internal(&self, fields: &InternalField) -> u64; fn set_internal(&self, fields: &InternalField, value: u64); }