Macro wrap

Source
macro_rules! wrap {
    ($x:expr) => { ... };
}
Expand description

The wrap! macro lets you pass in an async fn(Vec<String>) -> String function and it will converg it to the right type for a Nodes op field.

async fn concat_all(x: Vec<String>) -> String {
  x.concat()
}

let wrapped_concat_all = wrap!(concat_all);