Enum parity_wasm::interpreter::RuntimeValue
[−]
[src]
pub enum RuntimeValue { Null, AnyFunc(u32), I32(i32), I64(i64), F32(f32), F64(f64), }
Runtime value.
Variants
Null
Null value.
AnyFunc(u32)
Reference to the function in the same module.
I32(i32)
32b-length signed/unsigned int.
I64(i64)
64b-length signed/unsigned int.
F32(f32)
32b-length float.
F64(f64)
64b-length float.
Methods
impl RuntimeValue
[src]
fn default(variable_type: VariableType) -> Self
Creates new default value of given type.
fn decode_f32(val: u32) -> Self
Creates new value by interpreting passed u32 as f32.
fn decode_f64(val: u64) -> Self
Creates new value by interpreting passed u64 as f64.
fn is_null(&self) -> bool
Returns true if value is null.
fn as_any_func_index(&self) -> Option<u32>
Gets function index, if type of value is AnyFunc.
fn variable_type(&self) -> Option<VariableType>
Get variable type for this value.
Trait Implementations
impl Debug for RuntimeValue
[src]
impl Clone for RuntimeValue
[src]
fn clone(&self) -> RuntimeValue
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
impl PartialEq for RuntimeValue
[src]
fn eq(&self, __arg_0: &RuntimeValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RuntimeValue) -> bool
This method tests for !=
.