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

Method unwrap_extern

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

Source from the content-addressed store, hash-verified

913 /// Returns `Some(_)` if this `Ref` is a non-null `extern` reference.
914 #[inline]
915 pub fn unwrap_extern(&self) -> Option<&Rooted<ExternRef>> {
916 self.as_extern()
917 .expect("Ref::unwrap_extern on non-extern reference")
918 }
919
920 /// Is this an `any` reference?
921 #[inline]

Callers 1

mainFunction · 0.80

Calls 2

as_externMethod · 0.80
expectMethod · 0.45

Tested by

no test coverage detected