Nemeski@lemm.ee to Rust · 12 days agoAnnouncing Rust 1.86.0blog.rust-lang.orgexternal-linkmessage-square5linkfedilinkarrow-up160arrow-down10cross-posted to: [email protected]
arrow-up160arrow-down1external-linkAnnouncing Rust 1.86.0blog.rust-lang.orgNemeski@lemm.ee to Rust · 12 days agomessage-square5linkfedilinkcross-posted to: [email protected]
minus-squareINeedMana@lemmy.worldlinkfedilinkarrow-up2·6 days agoThank you So basically, it’s like inheritance but for traits?
minus-squarelivingcoderlinkfedilinkarrow-up2·6 days agoExactly. The functions of the super trait are also required when implementing the child trait’s functions, as you would expect from inheritance.
Thank you
So basically, it’s like inheritance but for traits?
Exactly. The functions of the super trait are also required when implementing the child trait’s functions, as you would expect from inheritance.