mun_memory/
lib.rs

1extern crate core;
2
3pub use r#type::{
4    ArrayType, Field, FieldData, HasStaticType, PointerType, StructType, StructTypeBuilder, Type,
5    TypeCollectionStats, TypeKind,
6};
7
8pub mod ffi {
9    pub use super::r#type::ffi::*;
10}
11
12mod cast;
13pub mod diff;
14pub mod gc;
15pub mod mapping;
16mod r#type;
17pub mod type_table;
18use mun_abi as abi;
19use thiserror::Error;
20
21pub mod prelude {
22    pub use crate::diff::{compute_struct_diff, FieldDiff, FieldEditKind, StructDiff};
23    pub use crate::mapping::{Action, FieldMapping};
24    pub use crate::r#type::{Field, PointerType, StructType, Type, TypeKind};
25}
26
27/// An error that can occur when trying to convert from an abi type to an internal type.
28#[derive(Debug, Error)]
29pub enum TryFromAbiError<'a> {
30    #[error("unknown TypeId '{0}'")]
31    UnknownTypeId(abi::TypeId<'a>),
32}