Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 40
Why is implementing Deref to emulate inheritance considered an anti-pattern?
A
Deref is meant for smart pointers; using it for 'inheritance' gives surprising method resolution and leaky abstractions
B
It disables Drop
C
Deref can't be implemented for structs
D
Deref is unsafe