Mastering Backend (@master_backend) 's Twitter Profile
Mastering Backend

@master_backend

Helping you become great backend engineers and unlock your careers with in-depth courses, boot camps, and projects.

ID: 1490614210006499329

linkhttps://masteringbackend.com/community calendar_today07-02-2022 09:11:49

2,2K Tweet

3,3K Followers

1 Following

Mastering Backend (@master_backend) 's Twitter Profile Photo

Rust enums are a great tool for modeling state, but there’s a catch: you can’t iterate through them out of the box. That’s where the strum crate shines, providing derive macros like EnumIter, Display, EnumString, and AsRefStr to unlock powerful functionality for enums.

Rust enums are a great tool for modeling state, but there’s a catch: you can’t iterate through them out of the box.

That’s where the strum crate shines, providing derive macros like EnumIter, Display, EnumString, and AsRefStr to unlock powerful functionality for enums.