MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / num_defined_funcs

Method num_defined_funcs

crates/environ/src/module.rs:562–564  ·  view source on GitHub ↗

Returns the number of functions defined by this module itself: all functions minus imported functions.

(&self)

Source from the content-addressed store, hash-verified

560 /// Returns the number of functions defined by this module itself: all
561 /// functions minus imported functions.
562 pub fn num_defined_funcs(&self) -> usize {
563 self.functions.len() - self.num_imported_funcs
564 }
565
566 /// Returns the number of tables defined by this module itself: all tables
567 /// minus imported tables.

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected