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

Method as_wasmtime

crates/c-api/src/val.rs:238–244  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

236impl wasmtime_func_t {
237 #[cfg(feature = "gc")]
238 unsafe fn as_wasmtime(&self) -> Option<Func> {
239 if self.store_id == 0 {
240 None
241 } else {
242 Some(self.func)
243 }
244 }
245}
246
247impl From<Option<Func>> for wasmtime_func_t {

Callers 15

wasmtime_arrayref_lenFunction · 0.80
wasmtime_arrayref_getFunction · 0.80
wasmtime_arrayref_setFunction · 0.80
wasmtime_arrayref_typeFunction · 0.80
to_val_unscopedMethod · 0.80
wasmtime_val_cloneFunction · 0.80
wasmtime_exnref_tagFunction · 0.80
wasmtime_exnref_fieldFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected