Enum parity_wasm::RuntimeValue
[−]
[src]
pub enum RuntimeValue {
Null,
AnyFunc(String, u32),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
}Runtime value.
Variants
NullNull value.
AnyFunc(String, u32)Reference to the function in the given module' function index space.
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[src]
Creates new default value of given type.
fn decode_f32(val: u32) -> Self[src]
Creates new value by interpreting passed u32 as f32.
fn decode_f64(val: u64) -> Self[src]
Creates new value by interpreting passed u64 as f64.
fn is_null(&self) -> bool[src]
Returns true if value is null.
fn variable_type(&self) -> Option<VariableType>[src]
Get variable type for this value.
Trait Implementations
impl Debug for RuntimeValue[src]
impl Clone for RuntimeValue[src]
fn clone(&self) -> RuntimeValue[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for RuntimeValue[src]
fn eq(&self, __arg_0: &RuntimeValue) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RuntimeValue) -> bool[src]
This method tests for !=.