Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 10
What does the newtype pattern struct UserId(u64) buy you?
A
Automatic database storage
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
Implicit conversion to u64