| 532 | /// ``` |
| 533 | #[must_use] |
| 534 | pub const fn as_inplace(self) -> Self { |
| 535 | match self { |
| 536 | Self::Add => Self::InplaceAdd, |
| 537 | Self::And => Self::InplaceAnd, |
| 538 | Self::FloorDivide => Self::InplaceFloorDivide, |
| 539 | Self::Lshift => Self::InplaceLshift, |
| 540 | Self::MatrixMultiply => Self::InplaceMatrixMultiply, |
| 541 | Self::Multiply => Self::InplaceMultiply, |
| 542 | Self::Remainder => Self::InplaceRemainder, |
| 543 | Self::Or => Self::InplaceOr, |
| 544 | Self::Power => Self::InplacePower, |
| 545 | Self::Rshift => Self::InplaceRshift, |
| 546 | Self::Subtract => Self::InplaceSubtract, |
| 547 | Self::TrueDivide => Self::InplaceTrueDivide, |
| 548 | Self::Xor => Self::InplaceXor, |
| 549 | _ => self, |
| 550 | } |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | impl fmt::Display for BinaryOperator { |