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

Method externref

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

Source from the content-addressed store, hash-verified

396 /// If this is a non-null `externref`, then `Some(Some(..))` is returned.
397 #[inline]
398 pub fn externref(&self) -> Option<Option<&Rooted<ExternRef>>> {
399 match self {
400 Val::ExternRef(None) => Some(None),
401 Val::ExternRef(Some(e)) => Some(Some(e)),
402 _ => None,
403 }
404 }
405
406 /// Returns the underlying `externref` value of this `Val`, panicking if it's the
407 /// wrong type.

Callers 1

unwrap_externrefMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected