The Rust compiler compiles all files at once to build crate , which is an executable or library. To add files to your mailbox, add moditems to your root directory (here, main.rs) or to other modules:
mod boolean_example;
mod function_goodbye_world;
mod listdir;
mod looping;
mod pattern_match;
mod write_to_file;
, , . , foo looping, looping::foo.
use . , use looping::foo;, foo looping::foo.
. .