Files
rust-tutor/exercises/02-generic-structs/README.md
Reality Enjoyer 02fbf819e4 generic types, traits and lifetimes
- get claude to create rustlings style exercises based on chapter 10 of the book
- update CLAUDE.md to prevent it from producing incorrect exercises
- complete exercises/01-generic-cache-system
2026-01-22 11:58:33 +00:00

685 B

Generic Message Queue

Build a message queue system that can handle different types of messages. You'll create generic structs and enums that can queue up emails, notifications, tasks, or any other message type without code duplication.

What you'll practice

  • Defining generic structs that hold collections of any type
  • Creating generic enums for different message states
  • Writing implementation blocks with generic type parameters
  • Using associated functions vs instance methods with generics

Further information