22
you are viewing a single comment's thread
view the rest of the comments
[-] calcopiritus@lemmy.world 1 points 8 hours ago* (last edited 8 hours ago)

Deref works on top of encapsulation though. Inheritance syntactically hides the encapsulation, with Deref it's in the clear.

It's true that it feels like inheritance, but I'm grateful for it. Otherwise it would be a pain to use the windows API.

this post was submitted on 01 Feb 2026
22 points (78.9% liked)

Rust

7716 readers
44 users here now

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

Wormhole

!performance@programming.dev

Credits

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

founded 2 years ago
MODERATORS