MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / push_tag

Method push_tag

crates/environ/src/module.rs:526–539  ·  view source on GitHub ↗

Appends a new tag to this module with the given type information.

(
        &mut self,
        signature: impl Into<EngineOrModuleTypeIndex>,
        exception: impl Into<EngineOrModuleTypeIndex>,
    )

Source from the content-addressed store, hash-verified

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

Callers 1

translate_payloadMethod · 0.80

Calls 2

panic_on_oomMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected