Macro execute

Source
macro_rules! execute {
    ($path: path, $array: expr) => { ... };
    ($path: path, $array: expr, $($arg: expr), *) => { ... };
}
Expand description

Execute a synchronous function with given arguments.

§Parameters

  • $path: The function path.
  • $array: The primary argument (e.g. input array or struct).
  • $arg…: Optional trailing arguments.

§Returns

  • The result of the function call.