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

Method unwrap_anyref

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

Source from the content-addressed store, hash-verified

446 /// Panics if `self` is not a (nullable) `anyref`.
447 #[inline]
448 pub fn unwrap_anyref(&self) -> Option<&Rooted<AnyRef>> {
449 self.anyref().expect("expected anyref")
450 }
451
452 /// Attempt to access the underlying `exnref` value of this `Val`.
453 ///

Callers 7

host_sets_array_globalFunction · 0.80
wasm_sets_array_globalFunction · 0.80
host_sets_struct_globalFunction · 0.80
wasm_sets_struct_globalFunction · 0.80
mainFunction · 0.80

Calls 2

expectMethod · 0.45
anyrefMethod · 0.45

Tested by 2