Enum sophon_wasm::RuntimeValue [] [src]

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

Runtime value.

Variants

Null value.

Reference to the function in the given module' function index space.

32b-length signed/unsigned int.

64b-length signed/unsigned int.

32b-length float.

64b-length float.

Methods

impl RuntimeValue
[src]

[src]

Creates new default value of given type.

[src]

Creates new value by interpreting passed u32 as f32.

[src]

Creates new value by interpreting passed u64 as f64.

[src]

Returns true if value is null.

[src]

Get variable type for this value.

Trait Implementations

impl Debug for RuntimeValue
[src]

[src]

Formats the value using the given formatter.

impl Clone for RuntimeValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for RuntimeValue
[src]

[src]

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

[src]

This method tests for !=.

impl From<i32> for RuntimeValue
[src]

[src]

Performs the conversion.

impl From<i64> for RuntimeValue
[src]

[src]

Performs the conversion.

impl From<f32> for RuntimeValue
[src]

[src]

Performs the conversion.

impl From<f64> for RuntimeValue
[src]

[src]

Performs the conversion.