Re:Mistakes with Rust smart pointers: when Deref goes wrong
by an_ko on Monday July 10, 2023 @07:52AM
(#36665052)
Yep. The docs for Deref also dedicate a whole paragraph, with a conclusion in bold, near the start of the page, to why it's a bad idea. https://doc.rust-lang.org/std/ops/trait.Deref.html
https://rust-unofficial.github.io/patterns/anti_patterns/der...