* \brief Gets the "root" instance of this linker which can be used to define * items into the linker under the top-level namespace. * * This `Linker` cannot be used while the returned `LinkerInstance` is in * scope. To use more methods on this `Linker` it's required that the instance * returned here is dropped first. */
| 164 | * returned here is dropped first. |
| 165 | */ |
| 166 | LinkerInstance root() { |
| 167 | wasmtime_component_linker_instance_t *instance_capi = |
| 168 | wasmtime_component_linker_root(ptr.get()); |
| 169 | return LinkerInstance(instance_capi); |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * \brief Defines all unknown imports of `component` as trapping functions. |