usesuper::Action;/// Creates a [`Invoke`] action that forwards the call to the passed function `f`.
pubfninvoke<F>(func: F)->Invoke<F>{
Invoke(func)}/// Action that forwards the call to the passed function `F`.
#[derive(Debug)]pubstructInvoke<F>(pub F);impl<F, X, T>Action<X, T>forInvoke<F>where
F: FnOnce(X) -> T,
{fnexec(self, args: X)-> T{(self.0)(args)}}