Publish TableElementType for library users.
This commit is contained in:
@@ -64,7 +64,8 @@ pub use func_translator::FuncTranslator;
|
|||||||
pub use module_translator::translate_module;
|
pub use module_translator::translate_module;
|
||||||
pub use translation_utils::{
|
pub use translation_utils::{
|
||||||
DefinedFuncIndex, DefinedGlobalIndex, DefinedMemoryIndex, DefinedTableIndex, FuncIndex, Global,
|
DefinedFuncIndex, DefinedGlobalIndex, DefinedMemoryIndex, DefinedTableIndex, FuncIndex, Global,
|
||||||
GlobalIndex, GlobalInit, Memory, MemoryIndex, SignatureIndex, Table, TableIndex,
|
GlobalIndex, GlobalInit, Memory, MemoryIndex, SignatureIndex, Table, TableElementType,
|
||||||
|
TableIndex,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
|
|||||||
@@ -90,7 +90,9 @@ pub struct Table {
|
|||||||
/// WebAssembly table element. Can be a function or a scalar type.
|
/// WebAssembly table element. Can be a function or a scalar type.
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub enum TableElementType {
|
pub enum TableElementType {
|
||||||
|
/// A scalar type.
|
||||||
Val(ir::Type),
|
Val(ir::Type),
|
||||||
|
/// A function.
|
||||||
Func,
|
Func,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user