MCPcopy Create free account
hub / github.com/arcjet/gravity / module_handle

Method module_handle

cmd/gravity/src/codegen/func.rs:89–94  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

emitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected