Trait sophon_wasm::interpreter::ExternalVariableValue
[−]
[src]
pub trait ExternalVariableValue { fn get(&self) -> RuntimeValue; fn set(&mut self, value: RuntimeValue) -> Result<(), Error>; }
Externally stored variable value.
WebAssembly specificaiton requires that if a global variable is immutable, then it should remain unchanged. To comply with specification you should ensure this invariant holds.
Required Methods
fn get(&self) -> RuntimeValue
Get variable value.
fn set(&mut self, value: RuntimeValue) -> Result<(), Error>
Set variable value.