pub type ScalarFn<S> = Box<dyn Fn(&[S]) -> S>;
Boxed scalar function &[S] -> S.
&[S] -> S
pub struct ScalarFn<S>(/* private fields */);