Trait parity_wasm::interpreter::ExternalVariableValue
[−]
[src]
pub trait ExternalVariableValue { fn get(&self) -> RuntimeValue; fn set(&mut self, value: RuntimeValue) -> Result<(), Error>; }
Deprecated since 0.23
: Use wasmi crate to interpret wasm
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
Deprecated since 0.23
: Use wasmi crate to interpret wasm
Get variable value.
fn set(&mut self, value: RuntimeValue) -> Result<(), Error>
Deprecated since 0.23
: Use wasmi crate to interpret wasm
Set variable value.