Stage 4.8: Enums
Enums allow you to create a new type that can have a value of several tagged elements using the enum
keyword.
match
helps ensure exhaustive handling of all possible enum values making it a powerful
tool in ensuring quality code.
Further information: