We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Enums practice problems in Rust
Difficulty:
Category:
Tag:
Showing 10 of 10
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| Default, #[default] on an enum variant, and ..Default::default() | Easy | Primitives |
|
|
| Destructuring structs and nested patterns | Medium | Primitives |
|
|
| Discriminants, #[repr(u8)], as casts and mem::discriminant | Medium | Primitives |
|
|
| Enums are real sum types | Easy | Primitives |
|
|
| Enum state machines with data-carrying transitions | Hard | End-to-End |
|
|
| Folding an AST: separating traversal from action | Hard | End-to-End |
|
|
| `large_enum_variant`: boxing the fat variant | Medium | Primitives |
|
|
| match and exhaustiveness: the compiler as a checklist | Easy | Primitives |
|
|
| Recursive types need indirection: E0072 | Easy | Primitives |
|
|
| The wildcard trap: `_` arms freeze your enum against the future | Medium | Primitives |
|