Skip to content

Idiom practice problems in Rust

Difficulty:
Category:
Tag:

Showing 9 of 9

Status Title Difficulty
A macro-generated FFI binding layer Hard
Designing signatures: T, &T, &mut T, impl Into<T> Medium
E0509: a Drop type is an atom Hard
Enum state machines with data-carrying transitions Hard
Field init shorthand and struct update syntax Easy
if let, while let, and let ... else Easy
Indexing in a loop is usually a borrow-checker workaround — and clippy knows Medium
Joining owned strings Easy
Moving out of &mut: take, replace, swap Medium