Skip to content

Idiom practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 9 of 9

Title Difficulty
A macro-generated FFI binding layer Hard
Choose parameter types and shrink an enum Medium
Enum state machines with data-carrying transitions Hard
Field init shorthand and struct update syntax Easy
Joining owned strings Easy
Moving out of &mut: take, replace, swap Medium
Simplify stack control flow with pattern matching Easy
Subtract the minimum with a mutable iterator Medium
Take a payload while keeping its destructor valid Hard