Re:How I went about learning Rust
by glandium on Friday July 15, 2022 @05:52AM
(#32106446)
You can define a field with the type of the base class in the subclass, and impl Deref for SubClass, with Target = BaseClass.
[ Parent
| on HN ]