By using modules in Rust, you are able to separate your code into organised sections.
In this video I take you through how to define your own modules, look at public vs. private visibility and also how to define nested modules, which is pretty straightforward.
For your reference:
https://rustbyexample.com/mod.html
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 #36 - Modules (mod keyword) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato dcode 08 gennaio 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 14,270 volte e gli è piaciuto 280 spettatori. Buona visione!