25
submitted 1 day 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 3 points 1 day 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
25 points (93.1% liked)

Rust Programming

9122 readers
53 users here now

founded 6 years ago
MODERATORS