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

Method tmp

crates/core/src/ns.rs:18–26  ·  view source on GitHub ↗
(&mut self, name: &str)

Source from the content-addressed store, hash-verified

16 }
17
18 pub fn tmp(&mut self, name: &str) -> String {
19 let mut ret = name.to_string();
20 while self.defined.contains(&ret) {
21 ret = format!("{}{}", name, self.tmp);
22 self.tmp += 1;
23 }
24 self.defined.insert(ret.clone());
25 ret
26 }
27}

Callers 15

importMethod · 0.45
emitMethod · 0.45
newMethod · 0.45
lower_variantMethod · 0.45
lift_variantMethod · 0.45
handle_result_importMethod · 0.45
handle_result_callMethod · 0.45
emitMethod · 0.45
return_pointerMethod · 0.45
push_blockMethod · 0.45
qualify_packageMethod · 0.45

Calls 2

to_stringMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected