Invokes this function with the `params` given and returns the result. The `params` provided must match the parameters that this function takes in terms of their types and the number of parameters. Results will be written to the `results` slice provided if the call completes successfully. The initial types of the values in `results` are ignored and values are overwritten to write the result. It's
(
&self,
mut store: impl AsContextMut,
params: &[Val],
results: &mut [Val],
)
| 231 | /// |
| 232 | /// Panics if `store` does not own this function. |
| 233 | pub fn call( |
| 234 | &self, |
| 235 | mut store: impl AsContextMut, |
| 236 | params: &[Val], |
| 237 | results: &mut [Val], |
| 238 | ) -> Result<()> { |
| 239 | let mut store = store.as_context_mut(); |
| 240 | store.0.validate_sync_call()?; |
| 241 | self.call_impl(store.as_context_mut(), params, results)?; |
| 242 | Ok(()) |
| 243 | } |
| 244 | |
| 245 | /// Exactly like [`Self::call`] except for use on async stores. |
| 246 | /// |
nothing calls this directly
no test coverage detected