Enum parity_wasm::interpreter::RuntimeValue
[−]
[src]
pub enum RuntimeValue {
Null,
AnyFunc(String, u32),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
}: Use wasmi crate to interpret wasm
Runtime value.
Variants
Null: Use wasmi crate to interpret wasm
Null value.
AnyFunc(String, u32): Use wasmi crate to interpret wasm
Reference to the function in the given module' function index space.
I32(i32): Use wasmi crate to interpret wasm
32b-length signed/unsigned int.
I64(i64): Use wasmi crate to interpret wasm
64b-length signed/unsigned int.
F32(f32): Use wasmi crate to interpret wasm
32b-length float.
F64(f64): Use wasmi crate to interpret wasm
64b-length float.
Methods
impl RuntimeValue[src]
fn default(variable_type: VariableType) -> Self[src]
: Use wasmi crate to interpret wasm
Creates new default value of given type.
fn decode_f32(val: u32) -> Self[src]
: Use wasmi crate to interpret wasm
Creates new value by interpreting passed u32 as f32.
fn decode_f64(val: u64) -> Self[src]
: Use wasmi crate to interpret wasm
Creates new value by interpreting passed u64 as f64.
fn is_null(&self) -> bool[src]
: Use wasmi crate to interpret wasm
Returns true if value is null.
fn variable_type(&self) -> Option<VariableType>[src]
: Use wasmi crate to interpret wasm
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 !=.