struct Instance { exports: Exports, } impl Instance { fn func(&self, name: &str) -> Result, ExportError>; fn resolve_func(&self, name: &str) -> Result; fn dyn_func(&self, name: &str) -> Result; fn call(&self, name: &str, params: &[Value]) -> Result, Box>; fn context(&self) -> Ref; fn context_mut(&mut self) -> RefMut; fn exports(&self) -> ExportsIterator>; fn module(&self) -> Module; }