I come from Java/C# background and inheritance is an important concept in there, and it's such an important feature in so many use cases. Need to know, how to get around it in Rust.
I know, Rust doesn't support inheritance directly.
I come from Java/C# background and inheritance is an important concept in there, and it's such an important feature in so many use cases. Need to know, how to get around it in Rust.
I know, Rust doesn't support inheritance directly.
Rust is not an "OOP" language, however it has some features of OOP languages. Trying to write code that you would write in Java or C# in Rust will result in nothing, but confusion and suffering.
While in general Rust encourages to use composition over inheritance, you could you could use traits and super traits to express inheritance-like relation between interfaces (and not objects themselves).