Course
Idiomatic Rust
25 lessons · Rust. Start at lesson one and work through in order.
- 1. Think in Ownership
- 2. Borrow Strategically
- 3. Option and Result Are Your Control Flow
- 4. if let and while let
- 5. Iterator Chains Over Manual Loops
- 6. The Typestate Pattern
- 7. The Newtype Pattern
- 8. The Builder Pattern in Rust
- 9. From and Into
- 10. Deref Coercion
- 11. Cow
- 12. Designing Error Types
- 13. Display and Debug
- 14. derive Is Your Best Friend
- 15. Exhaustive Matching
- 16. Enums Over Booleans
- 17. Zero-Cost Abstractions
- 18. Drop and RAII
- 19. PhantomData
- 20. API Design Guidelines
- 21. The Turbofish ::<>
- 22. Feature Flags and Conditional Compilation
- 23. Clippy Is Your Mentor
- 24. Writing Great Rust Documentation
- 25. When to Reach for unsafe