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

Function to_upper_camel_case

crates/rust/src/lib.rs:1754–1761  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

1752}
1753
1754fn to_upper_camel_case(name: &str) -> String {
1755 match name {
1756 // The name "Guest" is reserved for traits generated by exported
1757 // interfaces, so remap types defined in wit to something else.
1758 "guest" => "Guest_".to_string(),
1759 s => s.to_upper_camel_case(),
1760 }
1761}
1762
1763fn wasm_type(ty: WasmType) -> &'static str {
1764 match ty {

Callers 6

generate_guest_importMethod · 0.85
print_typedef_enumMethod · 0.85
param_nameMethod · 0.85
result_nameMethod · 0.85
type_resourceMethod · 0.85
type_enumMethod · 0.85

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected