class Wasmer::ExternType

Overview

ExternType classifies imports and external values with their respective types. See also Specification: https://webassembly.github.io/spec/core/syntax/types.html#external-types

Defined in:

wasmer/extern.cr

Instance Method Summary

Instance Method Detail

def kind : ExternKind #

[View source]
def to_functiontype : FunctionType | Nil #

Converts the ExterType into a FunctionType If the ExternType is not a FunctionType, this method returns nil


[View source]
def to_globaltype : GlobalType | Nil #

Converts the ExterType into a GlobalType If the ExternType is not a GlobalType, this method returns nil


[View source]
def to_memorytype : MemoryType | Nil #

Converts the ExterType into a MemoryType If the ExternType is not a MemoryType, this method returns nil


[View source]
def to_tabletype : TableType | Nil #

Converts the ExterType into a TableType If the ExternType is not a TableType, this method returns nil


[View source]