Syllabus

  1. 01Getting StartedWhy Rust exists, how a Rust program is laid out, and how Cargo builds projects and manages dependencies.3 lessons
    1. 01Why Rust?
    2. 02Program Structure
    3. 03Cargo and the Manifest
  2. 02Variables, Ownership and BorrowingExpressions and statements, immutable-by-default variables, constants, the ownership rules that replace a garbage collector, references and borrowing, modules, macros and attributes.6 lessons
    1. 01Statements and Expressions
    2. 02Variables, Mutability and Constants
    3. 03Ownership
    4. 04References and Borrowing
    5. 05Modules and Visibility
    6. 06Macros and Attributes
  3. 03Control Flowif as an expression, pattern matching with match, if let, while let and let-else, and Rust's three kinds of loops.4 lessons
    1. 01if and else
    2. 02match
    3. 03if let, while let and let-else
    4. 04Loops
  4. 04Functions, Closures and IteratorsDefine functions with typed signatures, capture environment with closures, and process collections with lazy iterator chains.3 lessons
    1. 01Functions
    2. 02Closures
    3. 03Iterators
  5. 05TypesRust's primitive types and casts, arrays and vectors, &str and String, tuples and structs with methods, enums with data, and the Option and Result types that replace null and exceptions.7 lessons
    1. 01Primitive Types
    2. 02Arrays, Vectors and Slices
    3. 03&str and String
    4. 04Tuples and Structs
    5. 05Enums
    6. 06Option
    7. 07Result and Error Handling
  6. 06Traits, Generics and LifetimesDefine shared behavior with traits, write code that works for many types with generics and trait bounds, give names to types with aliases, and understand lifetime annotations.3 lessons
    1. 01Traits
    2. 02Generics and Type Aliases
    3. 03Lifetimes
  7. 07MacrosWrite your own declarative macros with macro_rules!, and understand what procedural macros such as custom derives do.2 lessons
    1. 01Declarative Macros
    2. 02Procedural Macros
  8. 08Libraries and ToolingFind and use crates, document your code with rustdoc, and use the standard toolchain for formatting, linting and testing.3 lessons
    1. 01Crates and crates.io
    2. 02Documentation with rustdoc
    3. 03Formatting, Linting and Testing