pub fn metacall_handle<T: MetaCallValue>(
handle: &mut Handle,
func: impl ToString,
args: impl IntoIterator<Item = impl MetaCallValue>,
) -> Result<T, MetaCallError>Expand description
Calls a function with arguments. The generic parameter is the return type of the function you’re calling. Checkout MetaCallValue for possible types. For example: …
let sum = metacall::metacall_handle::<i32>(handle, "sum", [1, 2]).unwrap();