Re:Rust from a Gopher – Lessons 7, 8 and 9
by Nullabillity on Wednesday November 18, 2020 @06:09AM
(#25135439)
Hence why you'd typically stick to ~one independent data structure per module.
You can still use re-exports (pub use) to hide it from the public API.
Depending on the case, this may have practical implications or not, but architecturally speaking, it's not good form.
A practical side effect is that having a lot of data structures is going to clutter the outline view in the IDE.