mirror of
https://github.com/tauri-apps/tauri-bindgen.git
synced 2026-01-31 00:45:21 +01:00
34 lines
711 B
Plaintext
34 lines
711 B
Plaintext
// hello 🐱 world
|
|
|
|
interface conventions {
|
|
func kebab_case()
|
|
|
|
record ludicrous_speed {
|
|
how_fast_are_you_going: u32,
|
|
i_am_going_extremely_slow: u64,
|
|
}
|
|
|
|
func foo(x: ludicrous_speed)
|
|
func %function_with_underscores()
|
|
func %function_with_no_weird_characters()
|
|
|
|
func apple()
|
|
func apple_pear()
|
|
func apple_pear_grape()
|
|
func a0()
|
|
|
|
// Comment out identifiers that collide when mapped to snake_case, for now; see
|
|
// https://github.com/WebAssembly/component-model/issues/118
|
|
//func APPLE()
|
|
//func APPLE_pear_GRAPE()
|
|
//func apple_PEAR_grape()
|
|
|
|
func is_XML()
|
|
|
|
func %explicit()
|
|
func %explicit_snake()
|
|
|
|
// Identifiers with the same name as keywords are quoted.
|
|
func %bool()
|
|
}
|