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

Method unwrap_component

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

Source from the content-addressed store, hash-verified

35
36 #[cfg(feature = "component-model")]
37 pub fn unwrap_component(&self) -> &Component {
38 match self {
39 RunTarget::Component(c) => c,
40 RunTarget::Core(_) => panic!("expected a component, not a core wasm module"),
41 }
42 }
43}
44
45/// Common command line arguments for run commands.

Callers 1

load_main_moduleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected