mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-05-24 05:01:34 +00:00
Update documentation for ExternalVariableValue.
This commit is contained in:
parent
e99779c9df
commit
e6bf41a10c
@ -23,7 +23,13 @@ pub enum VariableType {
|
|||||||
pub trait ExternalVariableValue {
|
pub trait ExternalVariableValue {
|
||||||
/// Get variable value.
|
/// Get variable value.
|
||||||
fn get(&self) -> RuntimeValue;
|
fn get(&self) -> RuntimeValue;
|
||||||
|
|
||||||
/// Set variable value.
|
/// Set variable value.
|
||||||
|
///
|
||||||
|
/// WebAssembly specificaiton [requires][0] that if global variable is immutable, then
|
||||||
|
/// it should remain unchanged.
|
||||||
|
///
|
||||||
|
/// [0]: https://webassembly.github.io/spec/appendix/properties.html#global-instance
|
||||||
fn set(&mut self, value: RuntimeValue) -> Result<(), Error>;
|
fn set(&mut self, value: RuntimeValue) -> Result<(), Error>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user