diff --git a/crates/wasmi/src/module/mod.rs b/crates/wasmi/src/module/mod.rs index a2b145a8092..356e6c08aa0 100644 --- a/crates/wasmi/src/module/mod.rs +++ b/crates/wasmi/src/module/mod.rs @@ -180,19 +180,19 @@ impl Module { } /// Returns the number of non-imported functions of the [`Module`]. - pub(crate) fn len_funcs(&self) -> usize { + pub fn len_funcs(&self) -> usize { self.funcs.len() } /// Returns the number of non-imported tables of the [`Module`]. - pub(crate) fn len_tables(&self) -> usize { + pub fn len_tables(&self) -> usize { self.tables.len() } /// Returns the number of non-imported linear memories of the [`Module`]. - pub(crate) fn len_memories(&self) -> usize { + pub fn len_memories(&self) -> usize { self.memories.len() } /// Returns the number of non-imported global variables of the [`Module`]. - pub(crate) fn len_globals(&self) -> usize { + pub fn len_globals(&self) -> usize { self.globals.len() }