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

Function wasmtime_structref_to_eqref

crates/c-api/src/structref.rs:64–72  ·  view source on GitHub ↗
(
    structref: Option<&wasmtime_structref_t>,
    out: &mut MaybeUninit<wasmtime_eqref_t>,
)

Source from the content-addressed store, hash-verified

62
63#[unsafe(no_mangle)]
64pub unsafe extern "C" fn wasmtime_structref_to_eqref(
65 structref: Option<&wasmtime_structref_t>,
66 out: &mut MaybeUninit<wasmtime_eqref_t>,
67) {
68 let eqref = structref
69 .and_then(|s| s.as_wasmtime())
70 .map(|s| s.to_eqref());
71 crate::initialize(out, eqref.into());
72}
73
74#[unsafe(no_mangle)]
75pub unsafe extern "C" fn wasmtime_structref_field(

Callers 1

to_eqrefMethod · 0.85

Calls 4

as_wasmtimeMethod · 0.80
initializeFunction · 0.70
mapMethod · 0.45
to_eqrefMethod · 0.45

Tested by

no test coverage detected