pub fn try_parallel_scan<T, F>( data: &[T], identity: T, op: F, ) -> CoreResult<Vec<T>>where T: Clone + Send + Sync, F: Fn(T, T) -> T + Send + Sync + Clone,
Parallel scan that validates the input is non-empty.