macro_rules! action {
($f: expr) => { ... };
($name: expr, $f: expr) => { ... };
}Expand description
Creates a new action, in case if the name is not provided, the function name will be used as the name of the action (in case of closures it is recommended to always provide a name to get it clear and readable).