Part 3: Intermediate Rust
This part covers collections, iterators, closures, smart pointers, and concurrency—the tools you need for real-world Rust programming.
What You’ll Learn
- Working with collections (Vec, HashMap, String)
- Iterator patterns and adaptors
- Closures and capturing
- Smart pointers (Box, Rc, Arc, RefCell)
- Multi-threaded programming
- Channels for message passing
- Mutexes and shared state
- Introduction to async/await
Chapters
- Collections - Vec, HashMap, and String
- Iterators - Patterns and adapters
- Closures - Anonymous functions and capturing
- Smart Pointers - Box, Rc, Arc, RefCell
- Threads - Spawning and joining
- Channels - Message passing
- Mutex - Shared state concurrency
- Async Basics - Introduction to async/await
The Big Picture
graph TD
A[Collections] --> B[Iterators]
B --> C[Closures]
C --> D[Smart Pointers]
D --> E[Concurrency]
E --> F[Threads]
E --> G[Channels]
E --> H[Mutex]
I[Async] --> J[Futures]
I --> K[async/await]
Prerequisites
- Completed Part 2: Fundamentals
- Understanding of ownership and borrowing
- Familiarity with traits and generics
Time Estimate
Plan for 4-6 hours to work through this part. Concurrency concepts may require extra practice.
Next Steps
Start with Collections to learn about Rust’s data structures.