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

Method unwrap_func

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

Source from the content-addressed store, hash-verified

1013 /// Returns `Some(_)` if this `Ref` is a non-null `func` reference.
1014 #[inline]
1015 pub fn unwrap_func(&self) -> Option<&Func> {
1016 self.as_func()
1017 .expect("Ref::unwrap_func on non-func reference")
1018 }
1019
1020 /// Get the type of this reference.
1021 ///

Callers 8

from_wasmtimeMethod · 0.45
paramMethod · 0.45
paramsMethod · 0.45
resultMethod · 0.45
resultsMethod · 0.45
assert_type_matchesMethod · 0.45
fromMethod · 0.45
compile_functionMethod · 0.45

Calls 2

expectMethod · 0.45
as_funcMethod · 0.45

Tested by

no test coverage detected