- 88lessons
- 5guided projects
- 10module checkpoints
- 4.0hours of video
What you'll learn
- Create, check, build, test, format and lint Cargo packages from the command line.
- Explain and apply ownership, moves, borrowing, slices and lifetime annotations so that safe programs compile without cloning by reflex.
- Abstract behaviour with generics, traits, trait bounds, trait objects and closures.
- Use Vec, String, HashMap, iterators and std file and console IO, including the stdout and stderr split.
- Test with unit and integration tests and deliver a command-line application with persistence that passes cargo test and cargo clippy.
Skills you'll gain
- Cargo projects
- tooling
- Values
- control flow
- Ownership
- borrowing
- lifetimes
- Structs
- enums
- modules
- Pattern matching
- Traits
- generics
- closures
Tools you'll use
- Rust
- Cargo
- rustfmt
- Clippy
- Standard library collections and threads
Details to know
- Certificate on completionIssued after your final project is reviewed
- 10 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 5 phases
Each phase ends with something you have built and checked.
- 01
Modules 1 to 2
Toolchain-gated task counter
Install and verify the Rust toolchain, create and build a Cargo package, choose debug or release builds, format and lint code, add a dependency, and read compiler diagnostics without depending on exact message text.
You build: Toolchain-gated task counter: A tasklog Cargo package that passes the format and lint gate, with versions.txt and a dry-run dependency record.
- 02
Modules 3 to 4
Borrow-checked task model
Explain where Rust values live, who owns them, how moves, copies and borrows change that, and use slices and lifetime annotations so references never outlive their data.
You build: Borrow-checked task model: Functions that borrow a task list for reading and one that mutates it, with no cloning of whole lists, and a written ownership diagram.
- 03
Modules 5 to 6
Command parser with traits
Branch on the shape of data with exhaustive match, bind and destructure values, combine literal, range and guard patterns, and use if let, let-else and while let for single cases.
You build: Command parser with traits: A Command enum parsed from a line of text with a single exhaustive match, plus let-else and while-let usage.
- 04
Modules 7 to 8
Tasklog with errors and files
Separate recoverable errors from bugs, handle Result and Option values, propagate with the question-mark operator, design typed errors with conversions, and report failure from main with an honest exit status.
You build: Tasklog with errors and files: A TaskError enum with From conversions, ? used through the parsing and loading path, and main returning Result.
- 05
Modules 9 to 10
Rust command-line application with explicit ownership and tested persistence
Use Box and Rc for heap and shared ownership, run work on threads with joins, channels and Arc<Mutex<T>>, read Send and Sync, and state exactly what unsafe permits and what it leaves checked.
You build: Concurrent summary and test suite: A summary that counts tasks across worker threads with Arc<Mutex<T>> or channels, joined deterministically, with a written note on why no unsafe code is needed.
Full curriculum
10 modules and 88 lessons, 46 to 78 hours of study
01Cargo projects and tooling8 lessons, 4 to 6 hours
Lessons
- Installing Rust with rustup and recording the toolchain versions
- Creating a package with cargo new and reading its layout
- Checking, building and running with cargo check, build and run
- Choosing between debug and release builds
- Printing with format macros: placeholders, Display and Debug
- Formatting and linting with cargo fmt and cargo clippy
- Dependencies, Cargo.toml and Cargo.lock
- Reading a compiler diagnostic without relying on its wording
After this module you can
- Install the toolchain with rustup and record the rustc and cargo version lines in a text file on your own machine.
- Run cargo new and name every generated file and what it holds.
- Locate the file, line and kind of a diagnostic and fix three supplied snippets using only pass or fail outcomes.
02Values and control flow9 lessons, 4 to 6 hours
Lessons
- Immutable bindings and mut
- Shadowing versus mutation
- Scalar types: integers, floats, bool and char
- Integer overflow and explicit arithmetic methods
- Tuples and arrays, and what an out-of-range index does
- Functions, parameters and expression-bodied returns
- if and else as conditions and as expressions
- while and for loops over ranges and arrays
- loop, break with a value and labelled loops
After this module you can
- Declare bindings with let, explain why reassignment needs mut and fix a reassignment error with the smallest change.
- Use shadowing to transform a value into a new type and explain how it differs from mut.
- Use loop with break value and a labelled break to leave nested loops.
03Ownership, borrowing and lifetimes11 lessons, 5 to 8 hours
Lessons
- Stack, heap and what ownership manages
- Ownership rules and drop at scope end
- Moves: ownership transfers on assignment
- Copy types, clone and the cost of copying
- Passing ownership into functions and getting it back
- Shared references: borrowing with &
- Mutable references and the exclusivity rule
- Reference scopes end at their last use
- String slices and array slices
- Dangling references and why they cannot compile
- Lifetime annotations and elision
After this module you can
- Classify the parts of fixed-size and growable values as stack or heap and say what a String stores on each side.
- State the ownership rules and predict when a value is dropped for scopes, reassignment and function ends.
- Write explicit lifetime annotations where elision cannot decide and put a reference inside a struct.
04Structs, enums and modules9 lessons, 4 to 6 hours
Lessons
- Defining and instantiating structs
- Field init shorthand and struct update syntax
- Tuple structs, unit structs and newtypes
- Methods and the three forms of self
- Associated functions and constructors
- Deriving Debug, Clone and PartialEq
- Enums with data in their variants
- Option<T> instead of null
- Modules, paths and privacy
After this module you can
- Define a struct with named fields, create instances in any field order, and change a field on a mutable instance.
- Use shorthand for same-named parameters and ..old to build a new instance, noting which fields move.
- Organise code into modules, make selected items pub, and split a module into its own file.
05Pattern matching7 lessons, 3 to 5 hours
Lessons
- match on enums and exhaustiveness
- Binding data from enum variants in patterns
- Catch-all arms and the underscore placeholder
- Literal, range and or patterns
- Match guards
- Destructuring structs, tuples and nested enums
- if let, let-else and while let for single cases
After this module you can
- Write a match over every variant of an enum and explain why omitting one is a compile error.
- Extract data from variants into names inside match arms and use it in the arm's expression.
- Replace a one-case match with if let, early-exit with let-else, and loop with while let.
06Traits, generics and closures11 lessons, 5 to 8 hours
Lessons
- Generic functions and type parameters
- Generic structs and enums
- Defining and implementing a trait
- Default methods and the orphan rule
- Trait bounds, impl Trait and where clauses
- Implementing Display and Debug
- Comparison traits and sorting
- Converting with From, Into and TryFrom
- Static versus dynamic dispatch with dyn Trait
- Closures and what they capture
- Fn, FnMut and FnOnce bounds
After this module you can
- Write a function with a type parameter and explain why it works for any type when its body uses no operation on the values.
- Define generic types with impl<T> blocks and recognise Option and Result as generic enums.
- Choose the loosest Fn-family bound a function needs and match closures to it.
07Results and errors8 lessons, 4 to 6 hours
Lessons
- Recoverable errors versus bugs: Result and panic
- Handling Result with match, unwrap and expect
- Propagating errors with the ? operator
- ? on Option, ok_or and ok
- Designing a custom error enum
- Converting errors with From and ?
- The Error trait, Box<dyn Error> and main returning Result
- Error design: when to panic and what to tell the user
After this module you can
- Classify failures as recoverable or as bugs and choose Result or panic accordingly.
- Handle both arms of a Result with match and know when unwrap and expect are acceptable.
- Review code for misplaced unwrap and panic and rewrite it to return typed errors with useful context.
08Collections, iterators and IO9 lessons, 4 to 6 hours
Lessons
- Vec: growable lists, indexing and get
- String, &str and UTF-8
- HashMap: keys, entry and ownership
- The Iterator trait and laziness
- Iterator adapters and collect
- iter, iter_mut and into_iter
- Arguments and reading files
- Standard output, standard error and exit codes
- Writing files and round-tripping data
After this module you can
- Build and iterate a Vec, and choose between indexing and get for a position that might not exist.
- Build and slice text while distinguishing bytes from characters.
- Write tasks to a file in a line format and prove that loading them returns equal tasks.
09Smart pointers, threads and the unsafe boundary8 lessons, 4 to 6 hours
Lessons
- Box<T> for heap data and recursive types
- Rc<T>: shared ownership and reference counts
- Spawning threads and joining them
- Channels: sending values between threads
- Shared state with Arc<Mutex<T>>
- Send and Sync as compiler-checked thread safety
- What unsafe permits and what it leaves checked
- Safe abstractions over unsafe code
After this module you can
- Use Box to give a recursive enum a known size and explain what happens when the box goes out of scope.
- Share one value among several owners with Rc and predict strong counts.
- Wrap a supplied unsafe operation in a function that checks its preconditions and documents them.
10Testing and the tasklog application8 lessons, 4 to 6 hours
Lessons
- Writing tests with #[test] and assertion macros
- Result-returning tests and should_panic
- Unit test modules with #[cfg(test)]
- Library plus binary and integration tests
- Organising test runs: filters, ignored tests and doc tests
- The store: adding, completing and removing tasks with typed errors
- Command dispatch, persistence and restart evidence
- The release gate: formatting, lint, tests and documentation
After this module you can
- Write a unit test with assert!, assert_eq! and assert_ne! and read what a failing test reports.
- Test error paths using is_err, tests that return Result, and should_panic with an expected message.
- Run the full gate and assemble a reproducible submission.
What you'll build
5 guided projects along the way, then a final project.
Toolchain-gated task counter
after module 2Borrow-checked task model
after module 4Command parser with traits
after module 6Tasklog with errors and files
after module 8Concurrent summary and test suite
after module 10
Final project
Rust command-line application with explicit ownership and tested persistence. Options: Pantry stock tracker; Reading list manager; Training log analyser.
What you submit
Submit source code and a README with setup, build and run instructions Functional checks: unit tests and at least one integration test passing under cargo test with the transcript attached Typed error handling with Result and ?
How it's reviewed
Trainer review against a weighted rubric: Correctness on normal, boundary and malformed input Ownership and borrowing used deliberately rather than clone by reflex Error design: typed errors, no panics on user input, stderr and exit status.
Where you'll use it
- Design typed error values so a command-line tool reports bad input with an honest exit code.
- Write unit and integration tests that prove data saved to a file reads back identically.
Roles that use these skills
- Rust developer
- Systems programmer
- Backend developer
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
What should I know before starting?
The course expects Programming Problem Solving or an accepted equivalent. Prerequisite course Programming Problem Solving. A short diagnostic check is described in the entry requirements.
What do I build for the final project?
You choose one of 3 options: Pantry stock tracker; Reading list manager; Training log analyser. It is reviewed by a trainer in a live demonstration.
When do I get a certificate?
Only after you build and demonstrate your live project. OUTLEARN staff issue certificates; nothing is issued automatically.
Be first in when Rust Programming opens
Email us and we will tell you as soon as enrolment opens.
Notify me when it opens
