Expand description
Swift type generation and collection.
This module handles:
- Collecting named types (structs and enums) from service definitions
- Generating Swift type definitions (structs, enums)
- Converting Rust types to Swift type strings
Functionsยง
- collect_
named_ types - Collect all named types (structs and enums with a name) from a service. Returns a vector of (name, Shape) pairs in dependency order.
- format_
doc - Format documentation comments for Swift.
- generate_
named_ types - Generate Swift type definitions for all named types.
- is_
channel - Check if a shape represents a channel type (Tx or Rx).
- swift_
scalar_ type - Convert ScalarType to Swift type string.
- swift_
type_ base - Convert Shape to Swift type string.
- swift_
type_ client_ arg - Convert Shape to Swift type string for client arguments.
- swift_
type_ client_ return - Convert Shape to Swift type string for client returns.
- swift_
type_ server_ arg - Convert Shape to Swift type string for server/handler arguments.
- swift_
type_ server_ return - Convert Shape to Swift type string for server returns.