Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 87
What does the newtype pattern struct UserId(u64) buy you?
A
Implicit conversion to u64
B
Faster arithmetic
C
Type safety: a UserId can't be passed where an OrderId or raw u64 is expected, at zero runtime cost
D
Automatic database storage