MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / require_export

Method require_export

crates/tinywasm/src/instance.rs:330–338  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

328
329 #[inline]
330 fn require_export(&self, name: &str) -> Result<ExternVal> {
331 match self.export_addr(name) {
332 Some(addr) => Ok(addr),
333 None => {
334 cold_path();
335 Err(Error::Other(format!("Export not found: {name}")))
336 }
337 }
338 }
339
340 #[inline]
341 #[cfg(feature = "guest-debug")]

Callers 5

extern_itemMethod · 0.80
func_untypedMethod · 0.80
memoryMethod · 0.80
tableMethod · 0.80
globalMethod · 0.80

Calls 1

export_addrMethod · 0.80

Tested by

no test coverage detected