rustlings

solving rustlings ft. dracuxan
git clone [email protected]:dracuxan/rustlings.git
Log | Files | Refs

README.md (606B)


      1 # Enums
      2 
      3 Rust allows you to define types called "enums" which enumerate possible values.
      4 Enums are a feature in many languages, but their capabilities differ in each language. Rust's enums are most similar to algebraic data types in functional languages, such as F#, OCaml, and Haskell.
      5 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.
      6 
      7 ## Further information
      8 
      9 - [Enums](https://doc.rust-lang.org/book/ch06-00-enums.html)
     10 - [Pattern syntax](https://doc.rust-lang.org/book/ch19-03-pattern-syntax.html)