Rust / Intermediate · Free public pilot
Intermediate Rust in 7 Days
Build a reading queue that parses typed commands, protects its state and reports results in a predictable order.
Start your first lesson →Build on Rust beginner.
Come in comfortable with ownership, borrowing, enums, Result and modules. Allow about 85–100 minutes per day for reading and practice. Split a day across sessions if you need more time.
Run Rust 2024 in your browser with code-playpad’s experimental compiler. The first Run downloads about 57 MB and caches the toolchain. Enter console input before pressing Run.
Each day ends with independent practice. Day 7 includes a multi-file project, an optional Cargo download and a review to try after a few days. Progress is saved in this browser.
Need a refresher? Review Rust Beginner →
Day 1 · About 114 minutes
Design Types Around Rules
Turn a beginner reading tracker into a model with valid IDs and explicit state transitions.
- From Reading Tracker to Reading Queue 32 min · Read, predict and practice
- Put Data on Enum Variants 26 min · Read, predict and practice
- Make a State Transition Explicit 26 min · Read, predict and practice
- Checkpoint: Validate a Reading Target 30 min · Independent checkpoint
Day 2 · About 112 minutes
Borrowed Data and Lifetimes
Return and store views into input while making their lifetimes clear.
- Accept a Slice at a Read-Only Boundary 26 min · Read, predict and practice
- Tie a Returned Borrow to Its Input 28 min · Read, predict and practice
- Store a Borrowed View in a Struct 28 min · Read, predict and practice
- Checkpoint: Borrow an Input Field 30 min · Independent checkpoint
Day 3 · About 112 minutes
Generics and Traits
Reuse a data shape or operation across types and state the behavior it needs.
- Use One Data Shape with Several Types 26 min · Read, predict and practice
- Require a Behavior with a Trait Bound 28 min · Read, predict and practice
- Use Standard Traits at an API Boundary 28 min · Read, predict and practice
- Checkpoint: Report Different Records 30 min · Independent checkpoint
Day 4 · About 116 minutes
Ordered Collections and Iterators
Protect unique IDs and derive reports from borrowed records.
- Keep Unique Keys in an Ordered Map 26 min · Read, predict and practice
- Filter and Transform a Borrowed Collection 34 min · Read, predict and practice
- Count and Sum Without an Intermediate Vector 26 min · Read, predict and practice
- Checkpoint: Report Pending Books in ID Order 30 min · Independent checkpoint
Day 5 · About 107 minutes
Typed Errors and Parsing
Parse commands into borrowed values and return errors callers can handle.
- Give Callers an Error They Can Match 26 min · Read, predict and practice
- Attach a Reason to a Missing Field 25 min · Read, predict and practice
- Parse a Command Before Running It 26 min · Read, predict and practice
- Checkpoint: Parse a Finish Request 30 min · Independent checkpoint
Day 6 · About 105 minutes
I/O Boundaries and Tests
Inject input and output, replay a fixture and test what survives rejection.
- Read the Same Way from stdin or Memory 25 min · Read, predict and practice
- Capture a Report with Write 25 min · Read, predict and practice
- Replay a Fixture and Compare the Transcript 25 min · Read, predict and practice
- Checkpoint: Test the Whole Input Loop 30 min · Independent checkpoint
Day 7 · About 158 minutes
Build the Reading Queue
Run, test and extend a multi-file queue, then apply the design to a loan log.
- Run the Reading Queue 24 min · Read, predict and practice
- Follow a Borrow Through the Queue 24 min · Read, predict and practice
- Prove Rejections Preserve the Queue 24 min · Read, predict and practice
- Show the Next Pending Book 26 min · Read, predict and practice
- On Your Own: A Library Loan Log 60 min · Independent checkpoint
- Come Back Later: Borrowing and State 45 min · Extra delayed review