Rust has module feature. It can be used to hierarchically split code in logical units. You can manage visibility like public, and private.
A module is a collection of items: functions, structs, traits, impl blocks, and even other modules.
Rust has module feature. It can be used to hierarchically split code in logical units. You can manage visibility like public, and private.
A module is a collection of items: functions, structs, traits, impl blocks, and even other modules.