Combining match and enums is useful in many situations. You’ll see this pattern a lot in Rust code: match against an enum, bind a variable to the data inside, and then execute code based on it. It’s a bit tricky at first, but once you get used to it, you’ll wish you had it in all languages. It’s consistently a user favorite - The Book of Rust
Discussion
The book is not only a guide to writing #rust ;
It is a guide to good writing 🙂