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

Method update_for_func

crates/rust/src/lib.rs:1688–1693  ·  view source on GitHub ↗
(&mut self, func: &Function)

Source from the content-addressed store, hash-verified

1686
1687impl FnSig {
1688 fn update_for_func(&mut self, func: &Function) {
1689 if let FunctionKind::Method(_) | FunctionKind::AsyncMethod(_) = &func.kind {
1690 self.self_arg = Some("&self".into());
1691 self.self_is_first_param = true;
1692 }
1693 }
1694}
1695
1696pub fn to_rust_ident(name: &str) -> String {

Callers 3

generate_exportsMethod · 0.80
generate_guest_importMethod · 0.80
generate_stub_implMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected