Link Search Menu Expand Document

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:

  1. if Expression

  2. if let Expression

  3. match Expression