Skip to content

Glossary: Rust Basics

Comparison operators

Also written: ==, !=, <, >, <=, >=

Operators that compare two values and give a `bool`: `==` equal, `!=` not equal, `<` less than, `>` greater than, `<=` at most, `>=` at least. One `=` stores a value, so use `==` to compare.

Where the book teaches it

Related terms

boolCondition