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