1use std::ops::Fn; 2 3type UnaryOperator<Arg, Ret> = dyn Fn(Arg) -> Ret; 4type BinaryOperator<Arg1, Arg2, Ret> = dyn Fn<(Arg1, Arg2), Output = Ret>;