@@ -164,10 +164,10 @@ for other types. Remember that signed integers are always represented using
164164two's complement. The operands of all of these operators are evaluated in
165165[ value expression context] [ value expression ] so are moved or copied.
166166
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 ` |
171171
172172\* Only for signed integer types.
173173
@@ -202,18 +202,18 @@ types. Remember that signed integers are always represented using two's
202202complement. The operands of all of these operators are evaluated in [ value
203203expression context] [ value expression ] so are moved or copied.
204204
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 ` |
217217
218218\* Integer division rounds towards zero.
219219
@@ -522,6 +522,10 @@ dependency.
522522
523523[ copies or moves ] : ../expressions.md#moved-and-copied-types
524524[ 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
525529[ mutable ] : ../expressions.md#mutability
526530[ place expression ] : ../expressions.md#place-expressions-and-value-expressions
527531[ unit ] : ../types/tuple.md
0 commit comments