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

Method unwrap_defined_wasm_function

crates/environ/src/key.rs:515–520  ·  view source on GitHub ↗

Unwrap a `FuncKey::DefinedWasmFunction` or else panic.

(self)

Source from the content-addressed store, hash-verified

513
514 /// Unwrap a `FuncKey::DefinedWasmFunction` or else panic.
515 pub fn unwrap_defined_wasm_function(self) -> (StaticModuleIndex, DefinedFuncIndex) {
516 match self {
517 Self::DefinedWasmFunction(module, def_func) => (module, def_func),
518 _ => panic!("`FuncKey::unwrap_defined_wasm_function` called on {self:?}"),
519 }
520 }
521
522 /// Unwrap a `FuncKey::ArrayToWasmTrampoline` or else panic.
523 pub fn unwrap_array_to_wasm_trampoline(self) -> (StaticModuleIndex, DefinedFuncIndex) {

Callers 2

compile_functionMethod · 0.80
compile_functionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected