Ephera@lemmy.ml to Rust Programming@lemmy.mlEnglish · 2 months agoInheritance in 🦀lemmy.mlimagemessage-square3linkfedilinkarrow-up127arrow-down15cross-posted to: rust@programming.dev
arrow-up122arrow-down1imageInheritance in 🦀lemmy.mlEphera@lemmy.ml to Rust Programming@lemmy.mlEnglish · 2 months agomessage-square3linkfedilinkcross-posted to: rust@programming.dev
minus-squaregoedelchen@mastodontech.delinkfedilinkarrow-up6·2 months 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)
@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)