Appends a new tag to this module with the given type information.
(
&mut self,
signature: impl Into<EngineOrModuleTypeIndex>,
exception: impl Into<EngineOrModuleTypeIndex>,
)
| 524 | |
| 525 | /// Appends a new tag to this module with the given type information. |
| 526 | pub fn push_tag( |
| 527 | &mut self, |
| 528 | signature: impl Into<EngineOrModuleTypeIndex>, |
| 529 | exception: impl Into<EngineOrModuleTypeIndex>, |
| 530 | ) -> TagIndex { |
| 531 | let signature = signature.into(); |
| 532 | let exception = exception.into(); |
| 533 | self.tags |
| 534 | .push(Tag { |
| 535 | signature, |
| 536 | exception, |
| 537 | }) |
| 538 | .panic_on_oom() |
| 539 | } |
| 540 | |
| 541 | /// Appends a new function to this module with the given type information, |
| 542 | /// used for functions that either don't escape or aren't certain whether |
no test coverage detected