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

top 2 comments
sorted by: hot top controversial new old
[โ€“] words_number 4 points 1 year ago

Interesting read, thanks :)

Btw. on my browsr (fennec on android) some angle brackets and types seem to be missing in the code examples. Might be an html-escape issue.

[โ€“] [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.