An enum of structs in Rust [for better ergonomics] (opens in new tab)
For the sake of brevity, I turned my enum with struct variants into an enum with tuple variants wrapping one struct per variant.
Read the original articleFor the sake of brevity, I turned my enum with struct variants into an enum with tuple variants wrapping one struct per variant.
Read the original article