Week 11: Structuring code
Introduction
This week you’ll synthesize everything you’ve learned about Rust by building a complete student management system. You’ll create a modular application that demonstrates structs for data modeling, enums for representing alternatives, error handling with Option and Result, and the Rust module system for code organization. This is where Rust’s type system shines—making invalid states unrepresentable.
Recommended readings
- Chapter 5: Using structs to structure related data
- Chapter 6: Enums and pattern matching
- Chapter 7: Managing growing projects - Packages, crates, and modules
- Chapter 8: Common collections - Vectors, strings, and hash maps
- Chapter 9: Error handling - Panic! and Result