mirror of
https://github.com/darkicewolf50/RustBrock.git
synced 2025-07-06 11:07:12 -06:00
finished ch7.2 and started ch7.3
This commit is contained in:
@ -70,3 +70,9 @@ pub struct Asparagus {}
|
||||
```
|
||||
|
||||
## Grouping Related Code in Modules
|
||||
used to group code together and make easier to reuse
|
||||
modules allow for the control of privacy, implementations needs to be declared as public otherwise it will be private by default not available to other modules if private
|
||||
|
||||
public modules and implementations can allow for different code to depend on it
|
||||
|
||||
this should be used to organize code like a file directory
|
Reference in New Issue
Block a user