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

Method unwrap_funcref

crates/wasmtime/src/runtime/values.rs:510–512  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

508 /// Panics if `self` is not a (nullable) `funcref`.
509 #[inline]
510 pub fn unwrap_funcref(&self) -> Option<&Func> {
511 self.funcref().expect("expected funcref")
512 }
513
514 #[inline]
515 pub(crate) fn comes_from_same_store(&self, store: &StoreOpaque) -> bool {

Calls 2

expectMethod · 0.45
funcrefMethod · 0.45

Tested by 2