Reference and documentation for Rust:
https://doc.rust-lang.org/book/second...
Refer to the above to find out how you can store data in variations.
Today we look at Enum Types in Rust - Enums provide a way to express your code in a descriptive and simple way. For example, when dealing with directions of a player in a game you might want to store all their possible directions in an Enum, having the variants Up, Down, Left and Right.
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
In questa pagina del sito puoi guardare il video online Rust Programming Tutorial #10 - Enum Types della durata di ore minuti seconda in buona qualità , che l'utente ha caricato dcode 11 novembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 40,191 volte e gli è piaciuto 670 spettatori. Buona visione!