What makes rust enums so great

Ever since I started learning Rust about 4 years ago, I’ve been in love with its enums. You see, Rust’s enums aren’t strictly enumerations. They’re closer to tagged unions or sum types, which are used to represent variants. Let’s take a look at what an enum is, and a few cool use-cases for them.

Read in full here:

This thread was posted by one of our members via one of our news source trackers.

1 Like

Corresponding tweet for this thread:

Share link for this tweet.

1 Like