Optimized Enum Sizes in Rust

Of the many ideas that Rust borrows from other languages, its enums are one that people seem to get the most excited about. They are sometimes referred to as sum types, algebraic data types, or tagged unions, and although they are typically associated wit… Read more

Similar

Polymorphism in Rust

In the previous post we explored the use of generic types in Rust and some of the common reasons for doing so. In this post, I’d like to take a step back and look at the full spectrum of options Rust makes available for accomplishing polymorphism, and get... (more…)

Read more »