Publish TableElementType for library users.

This commit is contained in:
Dan Gohman
2018-11-30 16:41:54 -08:00
parent f0dbba0ec8
commit 6e17bebf44
2 changed files with 4 additions and 1 deletions

View File

@@ -64,7 +64,8 @@ pub use func_translator::FuncTranslator;
pub use module_translator::translate_module;
pub use translation_utils::{
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"))]

View File

@@ -90,7 +90,9 @@ pub struct Table {
/// WebAssembly table element. Can be a function or a scalar type.
#[derive(Debug, Clone, Copy)]
pub enum TableElementType {
/// A scalar type.
Val(ir::Type),
/// A function.
Func,
}