This module provides types, traits and impls to convert between
Rust types and the Wasm Value type. Internally this module is
not used, except for the top-level entry points for invocation.
The store represents all global state that can be manipulated by WebAssembly programs. It
consists of the runtime representation of all instances of functions, tables, memories, and
globals, element segments, and data segments that have been allocated during the life time of
the abstract machine.
https://webassembly.github.io/spec/core/exec/runtime.html#store
Helper function to quickly construct host functions without worrying about wasm to Rust
type conversion. For user data, simply move the mutable reference into the passed closure.