Polymorphism in Rust: Enum vs. Trait and Struct

Rust isn’t an object-oriented language in the same way as C++ and Java. You cannot write classes that extend behavior from another class for example. However, Rust does support polymorphism a… Read more

Similar