Ephera@lemmy.ml to Rust Programming@lemmy.mlEnglish · 2 days agoInheritance in 🦀lemmy.mlimagemessage-square3fedilinkarrow-up126cross-posted to: rust@programming.dev
arrow-up126imageInheritance in 🦀lemmy.mlEphera@lemmy.ml to Rust Programming@lemmy.mlEnglish · 2 days agomessage-square3fedilinkcross-posted to: rust@programming.dev
minus-squaregoedelchen@mastodontech.delinkfedilinkarrow-up3·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)
@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)