MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / inline_roundtrip

Method inline_roundtrip

tests/runtime/map/test.rs:56–64  ·  view source on GitHub ↗
(
        a: wit_bindgen::rt::Map<u32, String>,
    )

Source from the content-addressed store, hash-verified

54 }
55
56 fn inline_roundtrip(
57 a: wit_bindgen::rt::Map<u32, String>,
58 ) -> wit_bindgen::rt::Map<String, u32> {
59 let mut result = wit_bindgen::rt::Map::new();
60 for (k, v) in a {
61 result.insert(v, k);
62 }
63 result
64 }
65
66 fn large_roundtrip(a: NamesById) -> NamesById {
67 a

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected