News for hackers. Stuff that matters.
Re:Rust from a Gopher – Lessons 7, 8 and 9 by pizza234 on Wednesday November 18, 2020 @06:00AM (#25135383)
An architectural side effect, at least in the case of Rust, is that when a file includes many data structures, they're going to be visible to each other.

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.

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.