ExploreRust Programming LanguageAll Cardswhat is "if let"? Make an example using the option type.

what is "if let"? Make an example using the option type.

what is "if let"? Make an example using the option type.
A more concise way of doing match, but non-exaustive. It's a bit like the ternary operator in python...