this post was submitted on 10 Jul 2023
20 points (100.0% liked)

Rust

6036 readers
13 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

Unusually high astonishment by Rust standards

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

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 Deref for newtypes on sites like stackoverflow, and IMO it's not entirely obvious when you should actually implement Deref.