You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rustlings/exercises/enums
marisa ec2d4bd3ee
Merge branch 'master' into refactor-hints
5 years ago
..
README.md feat: Add enums exercises 5 years ago
enums1.rs Merge branch 'master' into refactor-hints 5 years ago
enums2.rs Merge branch 'master' into refactor-hints 5 years ago
enums3.rs feat: improve `watch` execution mode 5 years ago

README.md

Enums

Rust allows you to define a type called enums which allow you to enumerate possible values. In combination with enums, we have the concept of pattern matching in Rust, which makes it easy to run different code for different values of an enumeration. Enums, while available in many languages, Rust's enums are most similar to algebraic data types in functional languages, such as F#, OCaml, and Haskell.

Book Sections