enum Wasmer::ValueKind

Overview

Represents the kind of a value

Defined in:

wasmer/value.cr

Enum Members

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 Method Summary

Instance Method Detail

def any_ref? #

[View source]
def f32? #

[View source]
def f64? #

[View source]
def func_ref? #

[View source]
def i32? #

[View source]
def i64? #

[View source]
def number? #

Returns true if the ValueKind is a number type


[View source]
def reference? #

Returns true if the ValueKind is a reference


[View source]
def to_s(io : IO) #
Description copied from struct Enum

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

See also: #to_s.


[View source]