Keyboard shortcuts

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

Why enums

  • Defining an enum

  • An enum type has variants.

  • match pattern matching operations must be exhaustive, this helps us ensuring that we handled every variant.