Ugiwise Get the app

Rust you can read.

You get a short Rust program and predict what it does, or find the line the compiler refuses. Then the app walks through it line by line: who owns each value, when it moves, and when it’s dropped.

Download on the App Store

iOS only for now

A Rust program traced one step at a time. Line 3, let pass = ticket;, is highlighted at step 2 of 4. Below it, ticket shows moved to pass, marked MOVED, and pass holds "Row 4", marked CHANGED; the note says the text moves, pass is its owner now, and ticket has nothing.

Try a card

Assigning a String moves it.

A card from Stage 7, Ownership. Tap Step and watch what each line does.

No Rust knowledge needed. Follow the highlighted line and watch who owns the text.

Output

Variables

Read the card: Assigning a String moves it

With a number, let pass = ticket; would give pass a copy. With a String, no second text is made. The one text gets a new owner: it moves from ticket to pass. After the move pass owns the text, and ticket owns nothing. Step through and watch both variables.

Your turn

The card and the question are the ones in the app, word for word.

Inside the app

What the Rust course looks like.

Screens from the Rust course, on an iPhone.

  1. A borrow traced step by step. At step 3 of 5 the program is inside show_twice on line 8, has printed Fragile Fragile, and a diagram shows text, a &String, with an arrow that says it borrows tag, while tag still holds "Fragile".
    Who owns it, who borrows it
  2. A find-the-bug question: this program doesn't compile; tap the line that uses a value after it has moved away. Line 5, println!("Recipe: {recipe}");, is marked THE BUG, and the correct answer note says line 3 moved the text from recipe to card.
    Find the line the compiler refuses
  3. A predict-the-output question from the final project, with the program in three files as tabs: main.rs, entry.rs and rules.rs. The rules.rs tab is open and shows the Rule trait and the LongDay struct.
    One program, three files
  4. The Rust Fundamentals course map: 30 stages, 307 lessons, 0 of 30 cleared, Bolt standing on Stage 1, First Programs, marked You are here, with a Start card for lesson 1 of 5, Your first Rust program.
    See where you are

The course

30 stages, in this order.

From your first program to ownership, borrowing, traits and threads, ending in a final project.

  1. First Programs
  2. Variables and Mutability
  3. Numbers and Basic Types
  4. Making Decisions
  5. Loops
  6. Functions
  7. Ownership
  8. References and Borrowing
  9. Strings and Slices
  10. Tuples and Arrays
  11. Structs
  12. Methods
  13. Enums and match
  14. Option
  15. Patterns
  16. Vectors
  17. Hash Maps
  18. Error Handling
  19. Generics
  20. Modules, Crates and Tests
  21. Traits
  22. Lifetimes
  23. Closures
  24. Iterators
  25. Trait Objects and Operators
  26. Smart Pointers
  27. Files and I/O
  28. Concurrency
  29. Macros and unsafe
  30. Final Project

Get Ugiwise on your iPhone

  • iOS only for now.
  • Stages 1 to 3 are free, and no account is required.
  • Stages 4 to 30 are a paid upgrade.
  • The course is written to Rust 2024.
  • The app doesn’t compile or run code on your phone. You read programs, predict what they print, find the line that breaks, answer multiple-choice questions and fill in the missing code.
Download on the App Store