@@ -164,10 +164,10 @@ for other types. Remember that signed integers are always represented using
164
164
two's complement. The operands of all of these operators are evaluated in
165
165
[ value expression context] [ value expression ] so are moved or copied.
166
166
167
- | Symbol | Integer | ` bool ` | Floating Point | Overloading Trait |
168
- | --------| -------------| -------------| ----------------| --------------------|
169
- | ` - ` | Negation* | | Negation | ` std::ops::Neg ` |
170
- | ` ! ` | Bitwise NOT | Logical NOT | | ` std::ops::Not ` |
167
+ | Symbol | Integer | ` bool ` | Floating Point | Overloading Trait |
168
+ | --------| -------------| -------------- | ----------------| --------------------|
169
+ | ` - ` | Negation* | | Negation | ` std::ops::Neg ` |
170
+ | ` ! ` | Bitwise NOT | [ Logical NOT] | | ` std::ops::Not ` |
171
171
172
172
\* Only for signed integer types.
173
173
@@ -202,18 +202,18 @@ types. Remember that signed integers are always represented using two's
202
202
complement. The operands of all of these operators are evaluated in [ value
203
203
expression context] [ value expression ] so are moved or copied.
204
204
205
- | Symbol | Integer | ` bool ` | Floating Point | Overloading Trait | Overloading Compound Assignment Trait |
206
- | --------| -------------------------| -------------| ----------------| --------------------| ------------------------------------- |
207
- | ` + ` | Addition | | Addition | ` std::ops::Add ` | ` std::ops::AddAssign ` |
208
- | ` - ` | Subtraction | | Subtraction | ` std::ops::Sub ` | ` std::ops::SubAssign ` |
209
- | ` * ` | Multiplication | | Multiplication | ` std::ops::Mul ` | ` std::ops::MulAssign ` |
210
- | ` / ` | Division* | | Division | ` std::ops::Div ` | ` std::ops::DivAssign ` |
211
- | ` % ` | Remainder | | Remainder | ` std::ops::Rem ` | ` std::ops::RemAssign ` |
212
- | ` & ` | Bitwise AND | Logical AND | | ` std::ops::BitAnd ` | ` std::ops::BitAndAssign ` |
213
- | <code >| ; </code > | Bitwise OR | Logical OR | | ` std::ops::BitOr ` | ` std::ops::BitOrAssign ` |
214
- | ` ^ ` | Bitwise XOR | Logical XOR | | ` std::ops::BitXor ` | ` std::ops::BitXorAssign ` |
215
- | ` << ` | Left Shift | | | ` std::ops::Shl ` | ` std::ops::ShlAssign ` |
216
- | ` >> ` | Right Shift** | | | ` std::ops::Shr ` | ` std::ops::ShrAssign ` |
205
+ | Symbol | Integer | ` bool ` | Floating Point | Overloading Trait | Overloading Compound Assignment Trait |
206
+ | --------| -------------------------| --------------- | ----------------| --------------------| ------------------------------------- |
207
+ | ` + ` | Addition | | Addition | ` std::ops::Add ` | ` std::ops::AddAssign ` |
208
+ | ` - ` | Subtraction | | Subtraction | ` std::ops::Sub ` | ` std::ops::SubAssign ` |
209
+ | ` * ` | Multiplication | | Multiplication | ` std::ops::Mul ` | ` std::ops::MulAssign ` |
210
+ | ` / ` | Division* | | Division | ` std::ops::Div ` | ` std::ops::DivAssign ` |
211
+ | ` % ` | Remainder | | Remainder | ` std::ops::Rem ` | ` std::ops::RemAssign ` |
212
+ | ` & ` | Bitwise AND | [ Logical AND] | | ` std::ops::BitAnd ` | ` std::ops::BitAndAssign ` |
213
+ | <code >| ; </code > | Bitwise OR | [ Logical OR] | | ` std::ops::BitOr ` | ` std::ops::BitOrAssign ` |
214
+ | ` ^ ` | Bitwise XOR | [ Logical XOR] | | ` std::ops::BitXor ` | ` std::ops::BitXorAssign ` |
215
+ | ` << ` | Left Shift | | | ` std::ops::Shl ` | ` std::ops::ShlAssign ` |
216
+ | ` >> ` | Right Shift** | | | ` std::ops::Shr ` | ` std::ops::ShrAssign ` |
217
217
218
218
\* Integer division rounds towards zero.
219
219
@@ -522,6 +522,10 @@ dependency.
522
522
523
523
[ copies or moves ] : ../expressions.md#moved-and-copied-types
524
524
[ dropping ] : ../destructors.md
525
+ [ logical and ] : ../types/boolean.md#logical-and
526
+ [ logical not ] : ../types/boolean.md#logical-not
527
+ [ logical or ] : ../types/boolean.md#logical-or
528
+ [ logical xor ] : ../types/boolean.md#logical-xor
525
529
[ mutable ] : ../expressions.md#mutability
526
530
[ place expression ] : ../expressions.md#place-expressions-and-value-expressions
527
531
[ unit ] : ../types/tuple.md
0 commit comments