Get the exception-catch items: dynamic context updates for interpreting tags, tag-associated targets, and catch-all targets.
(&self)
| 192 | /// interpreting tags, tag-associated targets, and catch-all |
| 193 | /// targets. |
| 194 | pub fn items(&self) -> impl Iterator<Item = ExceptionTableItem> + '_ { |
| 195 | self.items.iter().map(|item| match item { |
| 196 | InternalExceptionTableItem::Tag(tag, target_idx) => { |
| 197 | ExceptionTableItem::Tag(*tag, self.targets[usize::try_from(*target_idx).unwrap()]) |
| 198 | } |
| 199 | InternalExceptionTableItem::Default(target_idx) => { |
| 200 | ExceptionTableItem::Default(self.targets[usize::try_from(*target_idx).unwrap()]) |
| 201 | } |
| 202 | InternalExceptionTableItem::Context(ctx) => ExceptionTableItem::Context(*ctx), |
| 203 | }) |
| 204 | } |
| 205 | |
| 206 | /// Get all branch targets. |
| 207 | pub fn all_branches(&self) -> &[BlockCall] { |
no test coverage detected