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

Method as_func

crates/environ/src/types.rs:1261–1266  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1259
1260 #[inline]
1261 pub fn as_func(&self) -> Option<&WasmFuncType> {
1262 match self {
1263 Self::Func(f) => Some(f),
1264 _ => None,
1265 }
1266 }
1267
1268 #[inline]
1269 pub fn unwrap_func(&self) -> &WasmFuncType {

Callers 3

table_initFunction · 0.45
unwrap_funcMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected