]> git.proxmox.com Git - rustc.git/blob - src/doc/rust-by-example/src/mod.md
New upstream version 1.62.1+dfsg1
[rustc.git] / src / doc / rust-by-example / src / mod.md
1 # Modules
2
3 Rust provides a powerful module system that can be used to hierarchically split
4 code in logical units (modules), and manage visibility (public/private) between
5 them.
6
7 A module is a collection of items: functions, structs, traits, `impl` blocks,
8 and even other modules.