Open connortess opened 2 years ago
I'd file this under "Rust fundamentals". This kind of information should really go in the Rust Book. I think Practical Rust should be focused on ways to solve common high-level problems, like how to serialize data, run a basic HTTP service, set up authentication, make a quick CLI tool, etc.
when should you use an enum and when should you use a struct different use cases how matching works for both returning enums and structs