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