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

Method import_interface_paths

crates/wit-bindgen/src/lib.rs:1445–1457  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1443 }
1444
1445 fn import_interface_paths(&self) -> Vec<(InterfaceId, String, Option<String>)> {
1446 self.import_interfaces
1447 .iter()
1448 .filter(|(_, i)| i.in_world)
1449 .map(|(id, _)| (*id, None))
1450 .chain(
1451 self.world_implements_interfaces
1452 .iter()
1453 .map(|(name, id)| (*id, Some(name.clone()))),
1454 )
1455 .map(|(id, name_override)| (id, self.import_interface_path(&id), name_override))
1456 .collect()
1457 }
1458
1459 fn import_interface_path(&self, id: &InterfaceId) -> String {
1460 match &self.interface_names[id] {

Callers 2

world_host_traitsMethod · 0.80
world_add_to_linkerMethod · 0.80

Calls 6

collectMethod · 0.80
chainMethod · 0.80
import_interface_pathMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected