Swipe
SwipeSwipe
Swipe Apps

Paths

Motivation

Information

Swipe Coding · free lessons

Learn Rust

8 short lessons from the first two levels of the Rust track — real examples, quick checks and a quiz after every chapter. About 5 minutes each.

Start with “What is Rust?” →

Level 1

Introduction to Rust

  1. 1What is Rust?→
  2. 2The History of Rust→
  3. 3Where Is Rust Used?→

+ chapter quiz (10 questions) at the end

Level 2

Hello, Cargo!

  1. 4Setting Up a Project with Cargo→
  2. 5The main Function→

+ chapter quiz (10 questions) at the end

Printing to the Screen

  1. 6The println! Macro→
  2. 7Comments→

+ chapter quiz (10 questions) at the end

Building & Running

  1. 8cargo run vs cargo build→

+ chapter quiz (10 questions) at the end

Continue in the app: levels 3–20

The full Rust track goes much further. Here's what comes next:

Level 3🔒 in the app

Variables & Mutability · Scalar Types · Shadowing & Type Inference

Level 4🔒 in the app

Arithmetic Operators · Comparison & Logical Operators · Type Conversion

Level 5🔒 in the app

If/Else Expressions · loop and while · The for Loop

Level 6🔒 in the app

Ownership Basics · Move Semantics · Clone and Copy

Level 7🔒 in the app

Immutable References · Mutable References & Borrow Rules

Level 8🔒 in the app

Structs · Methods · Associated Functions

Level 9🔒 in the app

Defining Enums · The match Expression · Option<T>

Level 10🔒 in the app

The Result Type · panic! and Propagating Errors · unwrap, expect, and Good Judgment

Level 11🔒 in the app

Vectors · String vs &str · HashMap<K, V>

Level 12🔒 in the app

Defining and Implementing Traits · Generic Functions and Structs · Trait Bounds

Level 13🔒 in the app

The Dangling Reference Problem · Lifetimes in Structs & Elision · 'static and Multiple Lifetimes

Level 14🔒 in the app

Closures · Iterators · Putting It Together

Level 15🔒 in the app

Organizing Code with Modules · Modules Across Files & use · Cargo & Crates.io

Level 16🔒 in the app

Box<T> · Rc<T> · RefCell<T>

Level 17🔒 in the app

Spawning Threads · Sharing State Safely · Message Passing with Channels

Level 18🔒 in the app

Your First Tests · Testing for Failure and Organizing Tests · Beyond Unit Tests

Level 19🔒 in the app

Command-Line Arguments · Reading Input · Putting It Together

Level 20🔒 in the app

Structuring Real Projects · Tooling and Versioning · Sharing Your Code