Getting Started With Rust: Enums
Enums in Rust let you define a type that can be one of several possible values. They’re simple, useful, and something you’ll see constantly in Rust. Creating an Enum Let’s say a player can move in four directions: We can then create a…