Skip to content

Derive practice problems in Rust

Difficulty:
Category:
Tag:

Showing 6 of 6

Status Title Difficulty
Copy: the types that don't move Easy
Default, #[default] on an enum variant, and ..Default::default() Easy
#[derive(Debug)] and the three shapes of debug output Easy
Deriving traits, and when derive gets the bounds wrong Easy
PartialEq and Eq: why floats can be compared but not Eq Medium
PartialOrd and Ord: derived ordering follows declaration order Medium