Lets Learn Rust - 14 - Logical operators

1 month ago

G'day guys

In this video I start talking about logical operators and how we use them to compare 2 or more different boolean expressions against each other. I also explain what a boolean expression is in Rust.

Operators mentioned

The OR Operator
The AND Operator
The XOR Operator
The NOT Operator

Important Times

00:00 - Introduction
00:31 - What is a boolean expression?
01:03 - A first look at boolean logic and expressions.
03:01 - Understanding the OR operator
04:44 - Understanding the AND operator
06:13 - Understanding the XOR operator
07:27 - Understanding the NOT operator
08:30 - Using variables with logical operators
08:58 - Using comparison operators with logical operators
10:31 - Understanding order of precedence
12:32 - Lazy operators and short circuiting
16:57 - Conclusion

Loading comments...