4 ms·
Sounds like a job for typed pattern matching. See rusts, match operator. The operator won't even allow your code to compile if all branches are not accounted f
by crimsonalucard 8y ago
Sounds like a job for typed pattern matching.
See rusts, match operator. The operator won't even allow your code to compile if all branches are not accounted for.