summaryrefslogtreecommitdiff
path: root/crates/types/src
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-01-24 14:34:48 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-01-24 14:34:48 +0100
commited1e181bdbefabfa7984b14e2d1383f39e0c69a4 (patch)
tree8481578d154e28d2ab62a55c58341fa19f561792 /crates/types/src
parent0382b0660280a828498310322bfd2d50de51187a (diff)
feat: linker errors
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/src')
-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,
}
}