MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / link_module

Method link_module

crates/tinywasm/src/imports.rs:135–138  ·  view source on GitHub ↗

Link a module This will automatically link all imported values on instantiation

(&mut self, name: &str, instance: crate::ModuleInstance)

Source from the content-addressed store, hash-verified

133 ///
134 /// This will automatically link all imported values on instantiation
135 pub fn link_module(&mut self, name: &str, instance: crate::ModuleInstance) -> Result<&mut Self> {
136 self.modules.insert(name.to_string(), instance);
137 Ok(self)
138 }
139
140 /// Define an import value.
141 pub fn define(&mut self, module: &str, name: &str, value: impl Into<Extern>) -> &mut Self {

Callers 4

mainFunction · 0.80
importsMethod · 0.80

Calls

no outgoing calls