A value of type
bool representing logical true.
true is not equal to
Several of Rust's control structures will check for a
bool condition evaluating to true.
The condition in an
ifexpression must be of type
bool. Whenever that condition evaluates to true, the
ifexpression takes on the value of the first block. If however, the condition evaluates to
false, the expression takes on value of the
elseblock if there is one.
whileis another control flow construct expecting a
bool-typed condition. As long as the condition evaluates to true, the
whileloop will continually evaluate its associated block.
matcharms can have guard clauses on them.