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 { max(&self) -> Option<u32>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 memory; 24 mod table; 25 mod tag; 26 mod val; 27 pub use self::export::*; 28 pub use self::r#extern::*; 29 pub use self::func::*; 30 pub use self::global::*; 31 pub use self::import::*; 32 pub use self::memory::*; 33 pub use self::table::*; 34 pub use self::tag::*; 35 pub use self::val::*; 36