mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-22 06:51:58 +02:00
The current slide on visibility introduces the idea that modules are the encapsulation boundary, but it doesn't explicitly doesn't talk about struct fields/methods. I think it's worth talking explicitly about structs and encapsulation because most students are going to be coming from a background where types (instead of modules) are the encapsulation boundary. It's worth talking explicitly about how encapsulation works, even if we're kind of repeating information from the previous slide.