Extracts the raw value of this `Func`, which is owned by `store`. This function returns a value that's suitable for writing into the `funcref` field of the [`ValRaw`] structure. # Safety The returned value is only valid for as long as the store is alive. This value is safe to pass to [`Func::from_raw`] so long as the same `store` is provided.
(&self, mut store: impl AsContextMut)
| 1073 | /// This value is safe to pass to [`Func::from_raw`] so long as the same |
| 1074 | /// `store` is provided. |
| 1075 | pub fn to_raw(&self, mut store: impl AsContextMut) -> *mut c_void { |
| 1076 | self.to_raw_(store.as_context_mut().0) |
| 1077 | } |
| 1078 | |
| 1079 | pub(crate) fn to_raw_(&self, store: &mut StoreOpaque) -> *mut c_void { |
| 1080 | self.vm_func_ref(store).as_ptr().cast() |