rustlings/exercises/enums
Fabricio 08efd2525f
Update enums3.rs
This will cause the function to keep failing, In order to pass I needed to remove a pair of quotes, not sure if this was intentional and my solution was wrong, but this was the only solution I was able to come up with.
2020-10-13 11:07:12 -04:00
..
enums1.rs Merge branch 'master' into refactor-hints 2019-11-11 17:21:06 +01:00
enums2.rs chore: Run rustfmt on exercises 2020-08-10 10:24:21 -04:00
enums3.rs Update enums3.rs 2020-10-13 11:07:12 -04:00
README.md chore: Removed extra whitespaces 2020-08-27 19:51:19 +02:00

Enums

Rust allows you to define types called "enums" which enumerate possible values. Enums are a feature in many languages, but their capabilities differ in each language. Rusts enums are most similar to algebraic data types in functional languages, such as F#, OCaml, and Haskell. Useful in combination with enums is Rust's "pattern matching" facility, which makes it easy to run different code for different values of an enumeration.

Book Sections