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

Get variable value.

Set variable value.

Implementors