20
Mistakes with Rust smart pointers: when Deref goes wrong
(www.fuzzypixelz.com)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
Good article. I don't know if I would consider this newtype to be a smart pointer, and I think that's where the issues creep in. But I've definitely seen people suggest implementing
Dereffor newtypes on sites like stackoverflow, and IMO it's not entirely obvious when you should actually implementDeref.