Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Operator Precedence

OperatorAssociativity
Binds tighter
. ->left
is matchesleft
* / %left
+ -left
<< >>left
&left
^left
|left
!== == != <= < >= >requires parentheses
&&left
||left
==>right
<==left
<==>requires parentheses
..left
=right
closures; forall, exists; chooseright
&&&left
|||left
Binds looser

All operators that are from ordinary Rust have the same precedence-ordering as in ordinary Rust. See also the Rust operator precedence.