Set the value of a mutable global export by name.
(&self, store: &mut Store, name: &str, value: WasmValue)
| 578 | |
| 579 | /// Set the value of a mutable global export by name. |
| 580 | pub fn global_set(&self, store: &mut Store, name: &str, value: WasmValue) -> Result<()> { |
| 581 | self.global(name)?.set(store, value) |
| 582 | } |
| 583 | |
| 584 | /// Get a global by its module-local index. |
| 585 | /// |