23
submitted 2 weeks ago by Ephera@lemmy.ml to c/rust@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] goedelchen@mastodontech.de 5 points 2 weeks ago

@Ephera that feels wrong, somehow ...

You can have the thing you are dereferencing to be a trait, so you can change your "base class" at runtime.

At least, you can't have multiple inheritance with impl Deref (I hope / as far as I can see)

this post was submitted on 01 Feb 2026
23 points (84.8% liked)

Rust Programming

9142 readers
2 users here now

founded 6 years ago
MODERATORS