Concept Flow - Module visibility
Define module
Declare items: functions, structs
Set visibility: pub or private
Access items from outside module
Compiler checks visibility
Allowed
Code runs
This flow shows how Rust modules define items with visibility, and how the compiler checks access from outside the module, allowing or blocking usage.