Looks up the given offset within this module's text section and returns the trap code associated with that instruction, if there is one.
(&self, text_offset: usize)
| 614 | /// Looks up the given offset within this module's text section and returns |
| 615 | /// the trap code associated with that instruction, if there is one. |
| 616 | pub fn lookup_trap_code(&self, text_offset: usize) -> Option<CompiledTrap> { |
| 617 | lookup_trap_code(self.trap_data(), text_offset) |
| 618 | } |
| 619 | |
| 620 | /// Get the raw address range of this CodeMemory. |
| 621 | pub(crate) fn raw_addr_range(&self) -> Range<usize> { |