(
structref: Option<&wasmtime_structref_t>,
out: &mut MaybeUninit<wasmtime_eqref_t>,
)
| 62 | |
| 63 | #[unsafe(no_mangle)] |
| 64 | pub 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)] |
| 75 | pub unsafe extern "C" fn wasmtime_structref_field( |
no test coverage detected