enum

Wasmer::ValueKind

Inherits Enum / Comparable / Value / Object

Represents the kind of a value

Constants

I32 = 0_u8

A 32-bit integer. In WebAssembly, integers are sign-agnostic, i.E. this can either be signed or unsigned

I64 = 1_u8

A 64-bit integer. In WebAssembly, integers are sign-agnostic, i.E. this can either be signed or unsigned

F32 = 2_u8

A 32-bit float

F64 = 3_u8

A 64-bit float

AnyRef = 128_u8

An externref value which can hold opaque data to the WebAssembly instance itself.

FuncRef = 129_u8

A first-class reference to a WebAssembly function

Instance methods

any_ref?

Returns true if this enum value equals AnyRef

Source
f32?

Returns true if this enum value equals F32

Source
f64?

Returns true if this enum value equals F64

Source
func_ref?

Returns true if this enum value equals FuncRef

Source
i32?

Returns true if this enum value equals I32

Source
i64?

Returns true if this enum value equals I64

Source
number?

Returns true if the ValueKind is a number type

Source
reference?

Returns true if the ValueKind is a reference

Source
to_s(io : IO)

Appends a String representation of this enum member to the given io.

See also: to_s.

Source