Uses the indices stored in `self` to load an instance of [`TheWorld`] from the instance provided. Note that at this time this method will additionally perform type-checks of all exports.
(
&self,
mut store: impl wasmtime::AsContextMut,
instance: &wasmtime::component::Instance,
)
| 125 | /// Note that at this time this method will additionally |
| 126 | /// perform type-checks of all exports. |
| 127 | pub fn load( |
| 128 | &self, |
| 129 | mut store: impl wasmtime::AsContextMut, |
| 130 | instance: &wasmtime::component::Instance, |
| 131 | ) -> wasmtime::Result<TheWorld> { |
| 132 | let _ = &mut store; |
| 133 | let _instance = instance; |
| 134 | let interface0 = self.interface0.load(&mut store, &_instance)?; |
| 135 | Ok(TheWorld { interface0 }) |
| 136 | } |
| 137 | } |
| 138 | impl TheWorld { |
| 139 | /// Convenience wrapper around [`TheWorldPre::new`] and |
no test coverage detected