The Go expression that resolves to the wasm `api.Module` in the current direction. Exports live on a Go-side instance struct (`i.module`); imports receive the module as a `mod` parameter from wazero's host-function builder.
(&self)
| 87 | /// (`i.module`); imports receive the module as a `mod` parameter from |
| 88 | /// wazero's host-function builder. |
| 89 | fn module_handle(&self) -> &'static str { |
| 90 | match self.direction { |
| 91 | Direction::Export => "i.module", |
| 92 | Direction::Import { .. } => "mod", |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | pub fn args(&self) -> &[String] { |
| 97 | &self.args |