Let us explore a simple, yet very useful aspect of Rust.. Modules!
Table of contents
What are Modules?How to use ModulesExample!What are Modules?
Modules allow us to organize our code by separating similar functionality into their own groups for ease of readability and reuse, if need be! Modules also allow us to control the privacy of our code, by making things private or pub (public). Modules are part of the crate system of Rust, so they are very closely related.
How to use Modules
In our ...
Published on November 11, 2021 11:40