(&self)
| 110 | |
| 111 | impl wasmtime_extern_t { |
| 112 | pub unsafe fn to_extern(&self) -> Extern { |
| 113 | match self.kind { |
| 114 | WASMTIME_EXTERN_FUNC => Extern::Func(self.of.func), |
| 115 | WASMTIME_EXTERN_GLOBAL => Extern::Global(self.of.global), |
| 116 | WASMTIME_EXTERN_TABLE => Extern::Table(self.of.table), |
| 117 | WASMTIME_EXTERN_MEMORY => Extern::Memory(self.of.memory), |
| 118 | WASMTIME_EXTERN_SHAREDMEMORY => Extern::SharedMemory((**self.of.sharedmemory).clone()), |
| 119 | WASMTIME_EXTERN_TAG => Extern::Tag(self.of.tag), |
| 120 | other => panic!("unknown wasmtime_extern_kind_t: {other}"), |
| 121 | } |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | impl From<Extern> for wasmtime_extern_t { |
no test coverage detected