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

24 days of Rust – app_dirs and preferences

Today we're going to take a brief look at two crates from the same author - Andy Barron. The first of them is app_dirs - a useful library to find platform-dependent directories, such as application configuration, data directory or cache. The second crate ...

Read more »

Safety is Rust’s Fireflower

Steve is concerned that an overfocus on safety might sell Rust short. At its least compelling, safety turns into a PSA for you to "eat your vegetables." And he makes a good point that for people who have only worked with safe languages, it's a bit like se...

Read more »