Skip to main content

Interactive course

Course Rust

Master modern systems programming in Rust: from immutability, pattern matching, and Ownership/Borrow Checker through trait, lifetime, zero-cost iterators, Cargo tests, and concurrency without data races.

Static verification via keywords + execution on the official Rust Playground (one click for copy code + open).

01 · Fundamentals and Typification

2 lessons

Default immutability, explicit mutability, shadowing, scalar and compound types with static checking.

  1. 1.1Variables, let mut, const and ShadowingWhy `let` is immutable by default, when to use `let mut`, `const` constants, and how shadowing transforms types safely.~15 min
  2. 1.2Scalar, Tuple, Array and String Slice types`i32`/`usize` integers, `f64` floats, `bool`, `char` Unicode, tuple destructible, fixed-size array, and `&str` slices.~15 min

02 · Flow Control & Pattern Matching

2 lessons

Conditional expressions, safe loops, handling of `Option<T>` and exhaustive matching guaranteed by the compiler.

  1. 2.1if, loop, while, and for..in expressionsUse `if` as an expression, return values from `loop` with `break`, loop labels, and safely iterate over range `..` / `..=`.~15 min
  2. 2.2Enum, Option<T>, match ed if letModel algebraic states with `enum`, replace `null` with `Option<T>`, check exhaustiveness in `match`, and simplify with `if let`.~20 min

03 · Ownership, Move and Borrowing

2 lessons

The heart of Rust security: Stack vs Heap, Move semantics, Shared/Exclusive Borrowing, NLL and slice.

  1. 3.1Ownership: Stack, Heap, Move, Clone and CopyUnderstanding RAII and `drop` automatically, because the assignment of `String` performs a Move in O(1), when `Clone` and `Copy` are needed.~25 min
  2. 3.2References, Borrowing (&T / &mut T) and NLLXOR invariant of Borrow Checker (more `&T` or just one `&mut T`), Non-Lexical Lifetimes (NLL), dereferencing `*r` and string slices `&str`.~25 min

04 · Structures and Methods

2 lessons

Data modeling with classical struct, tuple struct, automatic drifts, and encapsulation using `impl` blocks.

  1. 4.1Define Struct, Tuple Struct and #[derive(Debug)]Declare struct, construct instances with shorthand field init, update `..other` syntax, instance mutability, and debug formatting `{:?}`.~15 min
  2. 4.2Methods, &self, &mut self and Self Constructors`impl` blocks, difference between `&self`, `&mut self` and `self` by value, associated functions `Self::new()` and encapsulation with `pub`.~18 min

05 · Generics and Traits

2 lessons

Zero-cost abstractions with parameters of type `<T>`, monomorphization, interfaces `trait` and constraints `where`.

  1. 5.1Generic Functions and Structs & TurbofishAvoid duplication with `<T>` on functions, `struct` and `enum`, monomorphization at compile-time and Turbofish `::<T>` syntax.~18 min
  2. 5.2Traits, impl Traits and Clauses whereDefine shared behaviors with `trait`, default implementations, trait bound `T: Summary + Clone`, `where`, and blanket impl.~20 min

06 · Lifetimes & Smart Pointers

2 lessons

Prevent dangling references with explicit lifetimes `'a` and handle advanced ownership with `Box<T>`, `Rc<T>` and `RefCell<T>`.

  1. 6.1Lifetime Explicits ('a), Elision and 'staticNote `'a` parameters in signatures that return references, understand the 3 elision rules, struct with references and `'static`.~22 min
  2. 6.2Smart Pointers: Box<T>, Rc<T> and RefCell<T>Allocate recursive types in Heap with `Box<T>`, share ownership single-thread with `Rc::clone`, and internal mutability checked with `RefCell<T>`.~22 min

07 · Collections and Error Handling

2 lessons

Standard data structures in Heap (`Vec`, `String`, `HashMap`) and robust handling of recoverable errors with `Result` and `?`.

  1. 7.1Vec<T>, String UTF-8 and HashMapManipulate dynamic vectors, understand why `String` doesn't index with `[i]`, and update `HashMap` with `.entry().or_insert()`.~18 min
  2. 7.2Result<T, E>, Operator ? and Custom ErrorDistinguish `panic!` from `Result`, propagate errors with the `?` operator, implement `From`, and expose typed `enum AppError`.~20 min

08 · Closures and Iterators Zero-Cost

3 lessons

Functional programming in Rust compiled into optimal machine loops using `Fn*` closures and lazy pipelines.

  1. 8.1Closure, Capture &T / &mut T / move and Trait Fn*Closure syntax, immutable/mutable/move capture inference and difference between trait `Fn`, `FnMut` and `FnOnce`.~18 min
  2. 8.2Trait Iterator and Lazy Adapters (map, filter, zip)Why iterators don't work until consumed, difference between `.iter()`, `.into_iter()`, `.iter_mut()` and chained adapters.~20 min
  3. 8.3Consumers (.collect, .fold, .sum) and Result InversionCollect pipelines in `Vec`/`HashMap`/`Result<Vec<T>, E>`, reduce with `.fold()`, and leverage the zero-cost abstraction without extra allocations.~20 min

09 · Modules, Cargo and Testing

3 lessons

Organize crates and modules with granular visibility, manage Cargo dependencies, and write robust test suites.

  1. 9.1Mod Modules, Path crate:: and Visibility pub(crate)Structure binaries (`main.rs`) and libraries (`lib.rs`), export API with `pub`, `pub(crate)`, `use ... as` and re-exports `pub use`.~18 min
  2. 9.2Cargo.toml, Crate, Feature Flags and SemVerAnatomy of `Cargo.toml` and `Cargo.lock`, release vs dev profile, configuring dependencies (`serde`) and conditional features.~16 min
  3. 9.3Unit Test #[cfg(test)], assert! and Test with ResultWrite module unit tests `#[cfg(test)]`, descriptive assertions `assert_eq!`, `#[should_panic]`, integration tests and doc-tests.~18 min

10 · Advanced Traits and Fearless Concurrency

4 lessons

Fundamental traits of the standard library, dynamic dispatch with `dyn Trait`, safe threads, `mpsc` and `Arc<Mutex<T>>` channels.

  1. 10.1Trait Standard: From/Into, Deref and Drop RAIIIdiomatic conversions with `From`/`TryFrom`, deref coercion on `&String -> &str` with `Deref`, and deterministic resource cleanup with `Drop`.~20 min
  2. 10.2Dynamic Dispatch (Box<dyn Trait>) & Object SafetyComparison between static generics `<T: Trait>` and `Box<dyn Trait>` (vtable), heterogeneous collections and dyn-compatibility requirements.~20 min
  3. 10.3OS Threads, move Closure and mpsc ChannelsStart thread with `std::thread::spawn`, transfer ownership with `move`, wait with `join()`, and communicate with `mpsc::channel`.~22 min
  4. 10.4Shared State Arc<Mutex<T>> and Marker Trait Send/SyncCombining `Arc::clone` and `Mutex::lock()` across multiple threads, preventing deadlocks, and understanding why `Send`/`Sync` eliminate data races at compile time.~22 min
Frequently asked questions

Course Rust FAQ

How many lessons and hands-on exercises are in Course Rust?

Course Rust covers 10 modules, 24 interactive lessons, and 120 practical exercises (~8 hours total) with instant automated validation.

Do I need local setup or IDE installation for Course Rust?

No installation required: every exercise and the interactive Course Rust playground execute right in your browser via WASM and isolated sandboxes, with instant feedback.

Is Module 1 of Course Rust free without creating an account?

Yes. Module 1 (“Module 1 — Fundamentals and Typification”), the live playground, and the printable cheatsheet are permanently free without signup, saving your progress locally in your browser.

Which career learning paths include Course Rust?

Course Rust is a core building block of Backend, Systems & DevOps, targeting roles such as Backend Engineer · Systems / SRE · Platform Engineer.