Match is used to define what action to perform for different variants of an Enum
When using Match all the variants have to be handled (Exhaustive Match)
Match vs. If Statement
With if statement the condition to be evaluated has to be a Boolean with match the condition can be of any type
Match can also be used to match on patterns that bind to values. Using pattern binding we can extract values from Enums
_ is a placeholder used in match statements to denote all the conditions
if let Statement
The if let syntax can be used if we are only interested in one of the variants of the Enum and we want to ignore the rest of the conditions (Shorthand for match statement)
The value on the right of the = is being compared with the condition on the left
And else statement can also be provided to handle the other cases