Skip to content

Chapter 7. Struct Declarations

A struct is a type made from named fields.

SectionTitle
1Struct Declarations
2Field Access
3Methods as Functions
4Enums
5Tagged Unions
6Packed Structs
7Data Layout
8Exercises