|
|
|
|
|
by veber-alex
293 days ago
|
|
But why? If I just need to check for 1 specific error and do something why do I need a switch? In Rust you have both "match" (like switch) and "if let" which just pattern matches one variant but both are properly checked by the compiler to have only valid values. |
|