Skip to main content

swift_case_ident

Function swift_case_ident 

Source
pub fn swift_case_ident(name: &str) -> String
Expand description

Convenience: always returns a usable Swift identifier for emitted Swift code, wrapping reserved keywords in backticks (`default`).

This is the Swift-idiomatic escape for keyword-collision identifiers in Swift source — distinct from swift_ident, which appends a trailing underscore for use on the Rust side of the bridge.