Enum parity_wasm::RuntimeValue [] [src]

pub enum RuntimeValue {
    Null,
    AnyFunc(u32),
    I32(i32),
    I64(i64),
    F32(f32),
    F64(f64),
}

Runtime value.

Variants

Null value.

Reference to the function in the same module.

32b-length signed/unsigned int.

64b-length signed/unsigned int.

32b-length float.

64b-length float.

Methods

impl RuntimeValue
[src]

Creates new default value of given type.

Creates new value by interpreting passed u32 as f32.

Creates new value by interpreting passed u64 as f64.

Returns true if value is null.

Gets function index, if type of value is AnyFunc.

Get variable type for this value.

Trait Implementations

impl Debug for RuntimeValue
[src]

Formats the value using the given formatter.

impl Clone for RuntimeValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for RuntimeValue
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<i32> for RuntimeValue
[src]

Performs the conversion.

impl From<i64> for RuntimeValue
[src]

Performs the conversion.

impl From<f32> for RuntimeValue
[src]

Performs the conversion.

impl From<f64> for RuntimeValue
[src]

Performs the conversion.