1 #[repr(C)] 2 #[derive(Clone)] 3 pub struct wasm_limits_t { 4 pub min: u32, 5 pub max: u32, 6 } 7 8 impl wasm_limits_t { 9 pub(crate) fn max(&self) -> Option<u32> { 10 if self.max == u32::max_value() { 11 None 12 } else { 13 Some(self.max) 14 } 15 } 16 } 17 18 mod export; 19 mod r#extern; 20 mod func; 21 mod global; 22 mod import; 23 mod instance; 24 mod memory; 25 mod module; 26 mod table; 27 mod val; 28 pub use self::export::*; 29 pub use self::func::*; 30 pub use self::global::*; 31 pub use self::import::*; 32 pub use self::instance::*; 33 pub use self::memory::*; 34 pub use self::module::*; 35 pub use self::r#extern::*; 36 pub use self::table::*; 37 pub use self::val::*; 38