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