Link a module This will automatically link all imported values on instantiation
(&mut self, name: &str, instance: crate::ModuleInstance)
| 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 { |
no outgoing calls