How should I think of enums in rust?
I'm a web developer for 10 years. I know a few languages and am learning rust. When I use enums in other languages I usually think of them as a finite set of constants that I can use. it's clear to me that in rust they are much more than just that, but I'm having trouble figuring out how exactly I should use them. They seem to be used a lot as wrapper types since they can hold values?
Can someone help shed some light? Is there any guidance on how to design apis idiomatically with the rust type system?