Caller is provided to host-defined functions when they're invoked from WebAssembly. A `Caller` can be used for `Storelike` arguments to allow recursive execution or creation of wasm objects. Additionally `Caller` can be used to learn about the exports of the calling instance.
| 25 | // or creation of wasm objects. Additionally `Caller` can be used to learn about |
| 26 | // the exports of the calling instance. |
| 27 | type Caller struct { |
| 28 | // Note that unlike other structures in these bindings this is named `ptr` |
| 29 | // instead of `_ptr` because no finalizer is configured with `Caller` so it's |
| 30 | // ok to access this raw value. |
| 31 | ptr *C.wasmtime_caller_t |
| 32 | } |
| 33 | |
| 34 | // NewFunc creates a new `Func` with the given `ty` which, when called, will call `f` |
| 35 | // |
nothing calls this directly
no outgoing calls
no test coverage detected