class Wasmer::ExternType
- Wasmer::ExternType
- Reference
- Object
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.crInstance Method Summary
- #kind : ExternKind
-
#to_functiontype : FunctionType | Nil
Converts the ExterType into a
FunctionType
If the ExternType is not aFunctionType
, this method returns nil -
#to_globaltype : GlobalType | Nil
Converts the ExterType into a
GlobalType
If the ExternType is not aGlobalType
, this method returns nil -
#to_memorytype : MemoryType | Nil
Converts the ExterType into a
MemoryType
If the ExternType is not aMemoryType
, this method returns nil - #to_tabletype : TableType | Nil
Instance Method Detail
Converts the ExterType into a FunctionType
If the ExternType is not a FunctionType
, this method returns nil
Converts the ExterType into a GlobalType
If the ExternType is not a GlobalType
, this method returns nil
Converts the ExterType into a MemoryType
If the ExternType is not a MemoryType
, this method returns nil