Rust provides pattern matching via the match keyword, which can be used like a C switch.
match
switch
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX