4 ms·
Rust has exactly that. The difference is that rust considers the scope of private access te be the entire file it's defined in, not just its methods.
by 3836293648 1y ago
Rust has exactly that. The difference is that rust considers the scope of private access te be the entire file it's defined in, not just its methods.
- kibwen 1y agoJust the module the struct is defined in, not the file. Easy mistake to make, given that a file is implicitly its own module, but you can create submodules within a file with the `mod` keyword.
- 3836293648 1y agoI thought it crossed into submodules as well, making it the entire file?