Modules Definition Example
- In order to establish a relationship between a module and its sub-module, you must write in the parent module
mod foo;
- The declaration above will look for a file named
foo.rs
orfoo/mod.rs
and will insert its contents inside a module namedfoo
under this scope