Construct the string that identifies a function on the wire
between the guest and host: <instance>#<function> for instance
members, e.g. wasi:http/types@0.2.0#[method]fields.get, and the
plain function name for functions imported or exported directly
by the world.
Emit code to marshal a parameter with value type pt from a
Rust value named by id. The resultant token stream will be an
expression which typechecks as Vec<u8>.
Emit code to marshal the result of a function with result type
rt from a Rust value named by id. The resultant token stream
will be an expression that which typechecks as Vec<u8>.
Emit code to unmarshal a parameter with value type pt from a
slice named by id. The resultant token stream will be an
expression which typechecks at the Rust type (as defined by the
crate::rtypes module) of the given value type.
Emit code to unmarshal the result of a function with result type
rt from a slice named by id. The resultant token stream
will be an expression which typechecks at the Rust type (as
defined by the crate::rtypes module) of the unnamed type of
the result, or unit if named results are used.