summaryrefslogtreecommitdiff
path: root/crates/types
diff options
context:
space:
mode:
Diffstat (limited to 'crates/types')
-rw-r--r--crates/types/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs
index 8872479..c8e80d2 100644
--- a/crates/types/src/lib.rs
+++ b/crates/types/src/lib.rs
@@ -387,7 +387,7 @@ pub struct GlobalType {
pub ty: ValType,
}
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, PartialEq, Eq)]
pub struct TableType {
pub element_type: ValType,
pub size_initial: u32,
@@ -443,18 +443,18 @@ pub struct Import {
#[derive(Debug, Clone)]
pub enum ImportKind {
- Func(TypeAddr),
+ Function(TypeAddr),
Table(TableType),
- Mem(MemoryType),
+ Memory(MemoryType),
Global(GlobalType),
}
impl From<&ImportKind> for ExternalKind {
fn from(kind: &ImportKind) -> Self {
match kind {
- ImportKind::Func(_) => Self::Func,
+ ImportKind::Function(_) => Self::Func,
ImportKind::Table(_) => Self::Table,
- ImportKind::Mem(_) => Self::Memory,
+ ImportKind::Memory(_) => Self::Memory,
ImportKind::Global(_) => Self::Global,
}
}