Skip to content

Glossary: Rust Basics

Enum

Also written: enumeration, enums

A type whose value must be exactly one of a fixed list of choices called variants, like a `Grind` that is `WholeBean`, `Espresso`, `Filter` or `FrenchPress`.

Where the book teaches it

Related terms

Variantmatch