Type returns the type of this export
(store Storelike)
| 48 | |
| 49 | // Type returns the type of this export |
| 50 | func (e *Extern) Type(store Storelike) *ExternType { |
| 51 | ptr := C.wasmtime_extern_type(store.Context(), e.ptr()) |
| 52 | runtime.KeepAlive(e) |
| 53 | runtime.KeepAlive(store) |
| 54 | return mkExternType(ptr, nil) |
| 55 | } |
| 56 | |
| 57 | // Func returns a Func if this export is a function or nil otherwise |
| 58 | func (e *Extern) Func() *Func { |
nothing calls this directly
no test coverage detected