...
If Let Expression
This lesson teaches the if let expression in Rust
if let
if let is a conditional expression that allows pattern matching. The block of code in the construct executes if the pattern in the condition matches with that of scrutinee expression.
The if let expression begins ...