|
|
|
|
|
by pjmlp
436 days ago
|
|
You are making the mistake to confuse inheritance with class inheritance. There is also interface inheritance, which Rust allows for with trait bounds composition, now made even easier with trait upcasting. With some macro help, one can even do COM style of multiple interface implementation with aggregation and delegation, to simulate class inheritance, like ATL allows for with template metaprogramming. |
|
Rust only has composition in this regard. Calling it inheritance in any way is just confusing terminology.