Modules form a tree rooted at the crate. Items are private by default; `pub`, `pub(crate)` and `pub(super)` widen visibility. `use` brings paths into scope, and files or directories map to modules automatically.
← Rust theorytheory 0/50 · 0%
Project structure · easy
19. Modules and Visibility
mod, pub and use.
Check your understanding
1. Default item visibility is…
2. Which limits visibility to the crate?