Struct parity_wasm::interpreter::VariableInstance
[−]
[src]
pub struct VariableInstance { /* fields omitted */ }
Variable instance.
Methods
impl VariableInstance
[src]
fn new(
is_mutable: bool,
variable_type: VariableType,
value: RuntimeValue
) -> Result<Self, Error>
is_mutable: bool,
variable_type: VariableType,
value: RuntimeValue
) -> Result<Self, Error>
New variable instance
fn new_global(
global_type: &GlobalType,
value: RuntimeValue
) -> Result<Self, Error>
global_type: &GlobalType,
value: RuntimeValue
) -> Result<Self, Error>
New global variable
fn get(&self) -> RuntimeValue
Get the value of the variable instance
fn set(&self, value: RuntimeValue) -> Result<(), Error>
Set the value of the variable instance
Trait Implementations
impl Debug for VariableInstance
[src]
impl Clone for VariableInstance
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more