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

Method print_generics

crates/rust/src/interface.rs:1987–1997  ·  view source on GitHub ↗
(&mut self, lifetime: Option<&str>)

Source from the content-addressed store, hash-verified

1985 }
1986
1987 fn print_generics(&mut self, lifetime: Option<&str>) {
1988 if lifetime.is_none() {
1989 return;
1990 }
1991 self.push_str("<");
1992 if let Some(lt) = lifetime {
1993 self.push_str(lt);
1994 self.push_str(",");
1995 }
1996 self.push_str(">");
1997 }
1998
1999 fn int_repr(&mut self, repr: Int) {
2000 self.push_str(int_repr(repr));

Callers 13

print_tyidMethod · 0.80
print_typedef_recordMethod · 0.80
print_rust_enumMethod · 0.80
print_rust_enum_debugMethod · 0.80
print_typedef_optionMethod · 0.80
print_typedef_resultMethod · 0.80
print_typedef_aliasMethod · 0.80
type_tupleMethod · 0.80
type_listMethod · 0.80
type_mapMethod · 0.80
type_futureMethod · 0.80

Calls 1

push_strMethod · 0.45

Tested by

no test coverage detected