Search⌘ K

Not-ing Other Comparison Operators

Understand the relationships between Rust's comparison operators by learning how some comparisons represent the negation of others. This lesson helps you gain confidence in boolean logic by practicing these opposites with real examples.

We'll cover the following...

It may seem a bit weird to you that we have six comparison operators, but only two of them form a pair. Sure, we have “equals” going with “not equals.” But why don’t we have “less than” ...