MCPcopy Index your code
hub / github.com/RustPython/RustPython / as_inplace

Method as_inplace

crates/compiler-core/src/bytecode/oparg.rs:534–551  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
554impl fmt::Display for BinaryOperator {

Callers 1

compile_opMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected