2026-spring rust-ownership/lessons/05-structs-and-enums

README.md

Lesson 5: Structs and enums

This lesson covers structs and enums. You'll read a short explanation, try three small exercises and finish with a quiz.

Full lesson: https://glibcode.net/courses/rust-ownership/lessons/5

Files

  • src/main.rs: structs with methods and an enum

Run it

cargo run

Exercises

See exercises.md. Ask in the forum once you've tried.