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

Method generate_function_params

crates/wit-bindgen/src/lib.rs:2925–2933  ·  view source on GitHub ↗
(&mut self, func: &Function)

Source from the content-addressed store, hash-verified

2923 }
2924
2925 fn generate_function_params(&mut self, func: &Function) {
2926 for param in func.params.iter() {
2927 let name = to_rust_ident(&param.name);
2928 self.push_str(&name);
2929 self.push_str(": ");
2930 self.print_ty(&param.ty, TypeMode::Owned);
2931 self.push_str(",");
2932 }
2933 }
2934
2935 fn push_wasmtime_or_anyhow_result(&mut self) {
2936 let wt = self.generator.wasmtime_path();

Callers 1

Calls 4

to_rust_identFunction · 0.85
print_tyMethod · 0.80
iterMethod · 0.45
push_strMethod · 0.45

Tested by

no test coverage detected