4 ms·
Rust doesn't have inheritance which is one of the key pieces of OOP. Traits just provide a single level of indirection and if you want to do anything more comp
by vvanders 9y ago
Rust doesn't have inheritance which is one of the key pieces of OOP.
Traits just provide a single level of indirection and if you want to do anything more complex you'll need to use composition to achieve it.