Operators and Symbols Flashcards
1
Q
!
ident!(…), ident!{…}, ident![…]
A
Macro expansion
2
Q
!
!expr
A
Bitwise or logical complement
Not overloadable
3
Q
!=
Example:
var != expr
A
Nonequality comparison
Overloadable: PartialEq
4
Q
%
Example:
expr % expr
A
Arithmetic remainder
Overloadable: Rem