Returns `true` if this is any instrumented opcode (regular INSTRUMENTED_*, INSTRUMENTED_LINE, or INSTRUMENTED_INSTRUCTION).
(self)
| 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. |