Skip to content

Part 8. Structs, Enums, and Unions

A struct is a type that groups several values together.

SectionTitle
1Struct Definitions
2Struct Methods
3Default Field Values
4Packed Structs
5Anonymous Structs
6Enums
7Tagged Unions
8Union Safety
9Modeling State Machines
10Data-Oriented Design