2022-05-13 01:17:29 +08:00

412 B

Match

Rust provides pattern matching via the match keyword, which can be used like a C switch. The first matching arm is evaluated and all possible values must be covered.

Further information