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

Method is_instrumented

crates/compiler-core/src/bytecode/instruction.rs:465–468  ·  view source on GitHub ↗

Returns `true` if this is any instrumented opcode (regular INSTRUMENTED_*, INSTRUMENTED_LINE, or INSTRUMENTED_INSTRUCTION).

(self)

Source from the content-addressed store, hash-verified

463 /// Returns `true` if this is any instrumented opcode
464 /// (regular INSTRUMENTED_*, INSTRUMENTED_LINE, or INSTRUMENTED_INSTRUCTION).
465 pub const fn is_instrumented(self) -> bool {
466 self.to_base().is_some()
467 || matches!(self, Self::InstrumentedLine | Self::InstrumentedInstruction)
468 }
469
470 /// Map a base opcode to its INSTRUMENTED_* variant.
471 /// Returns `None` if this opcode has no instrumented counterpart.

Callers 1

quickenMethod · 0.45

Calls 1

to_baseMethod · 0.45

Tested by

no test coverage detected