(
structref: Option<&wasmtime_structref_t>,
out: &mut MaybeUninit<wasmtime_anyref_t>,
)
| 51 | |
| 52 | #[unsafe(no_mangle)] |
| 53 | pub unsafe extern "C" fn wasmtime_structref_to_anyref( |
| 54 | structref: Option<&wasmtime_structref_t>, |
| 55 | out: &mut MaybeUninit<wasmtime_anyref_t>, |
| 56 | ) { |
| 57 | let anyref = structref |
| 58 | .and_then(|s| s.as_wasmtime()) |
| 59 | .map(|s| s.to_anyref()); |
| 60 | crate::initialize(out, anyref.into()); |
| 61 | } |
| 62 | |
| 63 | #[unsafe(no_mangle)] |
| 64 | pub unsafe extern "C" fn wasmtime_structref_to_eqref( |
no test coverage detected