Skip to content

Enums practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 10 of 10

Title Difficulty
Build a configuration from defaults and overrides Easy
Decode bytes into enum variants Medium
Destructuring structs and nested patterns Medium
Enum state machines with data-carrying transitions Hard
Folding an AST: separating traversal from action Hard
match and exhaustiveness: the compiler as a checklist Easy
Recursive types need indirection: E0072 Easy
Reduce an enum’s inline size with Box Medium
Represent commands with enum variants Easy
The wildcard trap: _ arms freeze your enum against the future Medium