match Expression (Rust)

match compares a value against a series of patterns and runs the arm of the first one that fits. It is an expression (returns a value) and must be exhaustive…