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

Method as_extern

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

Source from the content-addressed store, hash-verified

899 /// Returns `Some(Some(_))` if this `Ref` is a non-null `extern` reference.
900 #[inline]
901 pub fn as_extern(&self) -> Option<Option<&Rooted<ExternRef>>> {
902 match self {
903 Ref::Extern(e) => Some(e.as_ref()),
904 _ => None,
905 }
906 }
907
908 /// Get the underlying `extern` reference, panicking if this is a different
909 /// kind of reference.

Callers 1

unwrap_externMethod · 0.80

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected