pub fn metacall<T: MetaCallValue>(
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::<i32>("sum", [1, 2]).unwrap();