Wow, that in there are not only `pub` and `pub(crate)` for specifying visibility of items, but there is also:
- `pub(super)`: item will only be visible to the parent module
- pub(in crate::foo): item will only be visible in module `foo`

🤯 :rust:

See this excellent blog post by Aloso, when you want to understand Rust's module system:

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!