Why enums
-
An enum type has
variants
. -
match
pattern matching operations must be exhaustive, this helps us ensuring that we handled every variant.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
An enum type has variants
.
match
pattern matching operations must be exhaustive, this helps us ensuring that we handled every variant.