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