Struct parity_wasm::interpreter::VariableInstance
[−]
[src]
pub struct VariableInstance { /* fields omitted */ }
Deprecated since 0.23
: Use wasmi crate to interpret wasm
Variable instance.
Methods
impl VariableInstance
[src]
fn new(
is_mutable: bool,
variable_type: VariableType,
value: RuntimeValue
) -> Result<Self, Error>
[src]
is_mutable: bool,
variable_type: VariableType,
value: RuntimeValue
) -> Result<Self, Error>
Deprecated since 0.23
: Use wasmi crate to interpret wasm
New variable instance
fn new_global(
global_type: &GlobalType,
value: RuntimeValue
) -> Result<Self, Error>
[src]
global_type: &GlobalType,
value: RuntimeValue
) -> Result<Self, Error>
Deprecated since 0.23
: Use wasmi crate to interpret wasm
New global variable
fn new_external_global(
is_mutable: bool,
variable_type: VariableType,
value: Box<ExternalVariableValue>
) -> Result<Self, Error>
[src]
is_mutable: bool,
variable_type: VariableType,
value: Box<ExternalVariableValue>
) -> Result<Self, Error>
Deprecated since 0.23
: Use wasmi crate to interpret wasm
New global with externally stored value.
fn is_mutable(&self) -> bool
[src]
Deprecated since 0.23
: Use wasmi crate to interpret wasm
Is mutable
fn variable_type(&self) -> VariableType
[src]
Deprecated since 0.23
: Use wasmi crate to interpret wasm
Get variable type.
fn get(&self) -> RuntimeValue
[src]
Deprecated since 0.23
: Use wasmi crate to interpret wasm
Get the value of the variable instance
fn set(&self, value: RuntimeValue) -> Result<(), Error>
[src]
Deprecated since 0.23
: Use wasmi crate to interpret wasm
Set the value of the variable instance