[DRAFT]This page is not published. Only visible in development mode.

Enums

Enums define a fixed set of variants. They can be simple unit variants or struct variants that carry data.

Unit Variants

$ Unit Enum
$ ctrl+enter to run

Simple enums with no associated data. Useful for status fields, categories, and flags.

Struct Variants

$ Struct Enum
$ ctrl+enter to run

Struct enums carry typed data with each variant. Each variant can have different fields.