Conditional Expression
What Are Conditional Expression?
Conditions basically give the power to make decisions. They check the condition of the expression and act accordingly
Types of Conditional Expression
There are three types of conditional expression in Rust:
-
if Expression
-
if let Expression
-
match Expression