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

Method unwrap_core

src/common.rs:28–34  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

26
27impl RunTarget {
28 pub fn unwrap_core(&self) -> &Module {
29 match self {
30 RunTarget::Core(module) => module,
31 #[cfg(feature = "component-model")]
32 RunTarget::Component(_) => panic!("expected a core wasm module, not a component"),
33 }
34 }
35
36 #[cfg(feature = "component-model")]
37 pub fn unwrap_component(&self) -> &Component {

Callers 2

load_main_moduleMethod · 0.80
populate_with_wasiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected