Custom types
These chapters declare new types of your own: structs that group fields, and enums that name alternatives.
- Structs group named fields into one value.
- Enum types are a fixed set of named alternatives.
These chapters declare new types of your own: structs that group fields, and enums that name alternatives.