Re:Rust for JavaScript Developers – Pattern Matching and Enums
by estebank on Sunday July 12, 2020 @02:37PM
(#23813613)
Enums have 3 different variant types:
The struct variant is useful when you are carrying enough different fields that you want to name them.
[ Parent
| on HN ]
There are no comments on this comment yet.