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

Method unwrap_externref

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

Source from the content-addressed store, hash-verified

415 /// Panics if `self` is not a (nullable) `externref`.
416 #[inline]
417 pub fn unwrap_externref(&self) -> Option<&Rooted<ExternRef>> {
418 self.externref().expect("expected externref")
419 }
420
421 /// Attempt to access the underlying `anyref` value of this `Val`.
422 ///

Callers 3

mainFunction · 0.80

Calls 2

expectMethod · 0.45
externrefMethod · 0.45

Tested by 1